[erlang] Remove noise from patches
Hans Ulrich Niedermann
ndim at fedoraproject.org
Mon Mar 21 15:44:26 UTC 2011
commit 74dac526e8c5ad88387c01196303b4d7c0289196
Author: Hans Ulrich Niedermann <hun at n-dimensional.de>
Date: Mon Mar 21 15:17:34 2011 +0100
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.
otp-get-patches.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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"
More information about the scm-commits
mailing list