From 74dac526e8c5ad88387c01196303b4d7c0289196 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mar 21 2011 14:18:15 +0000 Subject: Remove noise from patches Remove noise from patches (git commit IDs and git version numbers), to keep the diffs in the erlang package more readable. --- diff --git a/otp-get-patches.sh b/otp-get-patches.sh index 65671cd..b72d43f 100755 --- a/otp-get-patches.sh +++ b/otp-get-patches.sh @@ -53,7 +53,8 @@ n=1 while read patch do otppatch="$(dirname "$patch")/otp-$(basename "$patch")" - mv -f "$patch" "$otppatch" + ${SED-sed} -e '1d' -e '/^-- $/,$d' "$patch" > "$otppatch" + rm -f "$patch" 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"