[erlang] Automatically add patch summary to spec file
Hans Ulrich Niedermann
ndim at fedoraproject.org
Sun Jan 30 18:42:08 UTC 2011
commit 6c90f376e73d87ad976f92cfdc207f65cebb7910
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date: Sun Jan 30 17:11:37 2011 +0100
Automatically add patch summary to spec file
otp-get-patches.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/otp-get-patches.sh b/otp-get-patches.sh
index 98797c3..835a3ef 100755
--- a/otp-get-patches.sh
+++ b/otp-get-patches.sh
@@ -57,6 +57,7 @@ do
comment="$(sed -n 's/^Fedora-Spec-Comment:\s*//p' "$otppatch")"
if test "x$comment" = "x"; then comment="Fedora specific patch"; fi
echo "# ${comment}" >> "$tmpdir/patch-list-tags.txt"
+ echo "# $(sed -n 's/^Subject: \[PATCH /\[/p' "$otppatch")" >> "$tmpdir/patch-list-tags.txt"
echo "Patch$n: $(basename "$otppatch")" >> "$tmpdir/patch-list-tags.txt"
base="$(basename "$patch" ".patch" | sed 's/^00[0-9][0-9]-//')"
backupext=".$(echo -n "$base" | tr -c -s '[:alnum:]' '_')"
More information about the scm-commits
mailing list