aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkgdiffex5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pkgdiffex b/bin/pkgdiffex
index 9ff0585..9cc1116 100755
--- a/bin/pkgdiffex
+++ b/bin/pkgdiffex
@@ -18,7 +18,6 @@ while [ $((++i)) -le $# ]; do
set -- "$@" "$o"
done
-cmd=cat
for o in "$@"; do
mv "${o%.orig}" "${o%.orig}".new # f -> f.new
cp "$o" "$o"inal # f.orig +> f.original
@@ -27,10 +26,10 @@ done
pkgpatchex
+echo '$NetBSD$'
for o in "$@"; do
mv "${o%.orig}" "$o" # f -> f.orig
mv "${o%.orig}".new "${o%.orig}" # f.new -> f
- pkgdiff "${o%.orig}" | $cmd
+ pkgdiff "${o%.orig}" | sed -n '2,$p'
mv "$o"inal "$o" # f.original -> f.orig
- cmd='sed -n 2,$p'
done