summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-09-07 18:48:48 +0200
committerWerner Koch <wk@gnupg.org>1999-09-07 18:48:48 +0200
commitd92e4db7fd17ff52400e533b997c1216ad823419 (patch)
tree8bbc63db8f6fe768092f9d5860311658faa2382d /scripts
parentSee ChangeLog: Tue Sep 7 17:08:10 CEST 1999 Werner Koch (diff)
downloadgnupg2-d92e4db7fd17ff52400e533b997c1216ad823419.tar.xz
gnupg2-d92e4db7fd17ff52400e533b997c1216ad823419.zip
See ChangeLog: Tue Sep 7 18:44:05 CEST 1999 Werner KochV1-0-0
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkdiff8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mkdiff b/scripts/mkdiff
index 4f7bfc77a..6fad6c188 100755
--- a/scripts/mkdiff
+++ b/scripts/mkdiff
@@ -9,14 +9,14 @@ pack="$1"
set -e
-curr_ver=$(ls $pack-*.tar.gz 2>/dev/null | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
- | head -1 | sed -e 's/'$pack'-\(.*\).tar.gz/\1/' )
+curr_ver=$(ls $pack-*.tar.gz 2>/dev/null | sed "s/^$pack-\(.*\)\.tar\.gz/\1/"\
+ | sort -r -t '.' -n +0 -1 +1 -2 +2 | head -1 )
if [ ! -f $pack-$curr_ver.tar.gz ]; then
echo "mkdiff: no current version of package $pack found" >&2
exit 1
fi
-prev_ver=$(ls $pack-*.tar.gz 2>/dev/null | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
- | head -2 | tail -1 | sed -e 's/'$pack'-\(.*\).tar.gz/\1/' )
+prev_ver=$(ls $pack-*.tar.gz 2>/dev/null | sed "s/^$pack-\(.*\)\.tar\.gz/\1/"\
+ | sort -r -t '.' -n +0 -1 +1 -2 +2 | head -2 | tail -1 )
if [ "$prev_ver" = "$curr_ver" ]; then
echo "mkdiff: no previous version of package $pack found" >&2
exit 1