aboutsummaryrefslogtreecommitdiff
path: root/bin/pkgdiffex
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-26 22:37:51 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-26 22:37:51 +0200
commit6b773971fad1d4967cd0adf9548af261f970a2d2 (patch)
tree574b281361c38c92fd68759f11e7d0ce51de2bac /bin/pkgdiffex
parent763e138b3dc2c5b68aa7edf8d3e9e520380495d1 (diff)
downloadpatches-6b773971fad1d4967cd0adf9548af261f970a2d2.tar.gz
Add pkgpatchex script
Diffstat (limited to 'bin/pkgdiffex')
-rwxr-xr-xbin/pkgdiffex6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/pkgdiffex b/bin/pkgdiffex
index d2fea2b..9ff0585 100755
--- a/bin/pkgdiffex
+++ b/bin/pkgdiffex
@@ -3,7 +3,7 @@
# pkgdiffex -- diff files against existing patches
if [ $# -eq 0 ]; then
- echo "usage: ${0##*/} file [...]" 1>&2
+ echo "usage: ${0##*/} file ..." 1>&2
exit 1
fi
@@ -25,9 +25,7 @@ for o in "$@"; do
cp "$o" "${o%.orig}" # f.orig +> f
done
-ls "$(whereispatch -i)"/patch-* | while read -r patch; do
- pkgpatch <$patch
-done
+pkgpatchex
for o in "$@"; do
mv "${o%.orig}" "$o" # f -> f.orig