From 4e5607ca59a45fe54da4d3d4c8f5e8c9df240c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 27 Jul 2021 00:59:49 +0200 Subject: pkgdiffex: Fix patch file header --- bin/pkgdiffex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin/pkgdiffex') 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 -- cgit v1.2.3