diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-27 00:59:49 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-27 00:59:49 +0200 |
commit | 4e5607ca59a45fe54da4d3d4c8f5e8c9df240c4c (patch) | |
tree | 439acb6535812eedb018ac7a2011ee62642574a3 /bin | |
parent | a81ee1fc136af28edee4eb48874158a2946c76d4 (diff) | |
download | patches-4e5607ca59a45fe54da4d3d4c8f5e8c9df240c4c.tar.gz |
pkgdiffex: Fix patch file header
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkgdiffex | 5 |
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 |