From 6c90f376e73d87ad976f92cfdc207f65cebb7910 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Jan 30 2011 16:11:37 +0000 Subject: Automatically add patch summary to spec file --- 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:]' '_')"