summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-02-24 19:50:46 +0100
committerWerner Koch <wk@gnupg.org>1998-02-24 19:50:46 +0100
commit5a05af2bca319adc9a915ff4466f04c3ef05142a (patch)
tree24292fd49662c09acbe4d6eae321888cbb175585 /scripts
parentrel 0.2.7 mit kleines Korrekturen (diff)
downloadgnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.tar.xz
gnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.zip
Renamed to GNUPGV-0-2-8
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkdiff36
1 files changed, 18 insertions, 18 deletions
diff --git a/scripts/mkdiff b/scripts/mkdiff
index 86eea361a..659768374 100755
--- a/scripts/mkdiff
+++ b/scripts/mkdiff
@@ -2,28 +2,28 @@
set -e
-curr_ver=$(ls g10-*.tar.gz | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
- | head -1 | sed -e 's/g10-\(.*\).tar.gz/\1/' )
-prev_ver=$(ls g10-*.tar.gz | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
- | head -2 | tail -1 | sed -e 's/g10-\(.*\).tar.gz/\1/' )
+curr_ver=$(ls gnupg-*.tar.gz | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
+ | head -1 | sed -e 's/gnupg-\(.*\).tar.gz/\1/' )
+prev_ver=$(ls gnupg-*.tar.gz | sort -r -t '.' -n +0.4 -1 +1 -2 +2 \
+ | head -2 | tail -1 | sed -e 's/gnupg-\(.*\).tar.gz/\1/' )
echo "Current is: $curr_ver"
echo "Previous is: $prev_ver"
echo "Removing old directories"
-[ -d "g10-$curr_ver" ] && rm -rf "g10-$curr_ver"
-[ -d "g10-$prev_ver" ] && rm -rf "g10-$prev_ver"
+[ -d "gnupg-$curr_ver" ] && rm -rf "gnupg-$curr_ver"
+[ -d "gnupg-$prev_ver" ] && rm -rf "gnupg-$prev_ver"
echo "Unpacking previous and current tar"
-tar xzf "g10-$curr_ver.tar.gz"
-tar xzf "g10-$prev_ver.tar.gz"
+tar xzf "gnupg-$curr_ver.tar.gz"
+tar xzf "gnupg-$prev_ver.tar.gz"
echo "Diffing"
-tmp_name="g10-$curr_ver.diff.tmp"
-diff_name="g10-$curr_ver.diff"
+tmp_name="gnupg-$curr_ver.diff.tmp"
+diff_name="gnupg-$curr_ver.diff"
-diff -urN "g10-$prev_ver/" "g10-$curr_ver/" > $tmp_name || true
+diff -urN "gnupg-$prev_ver/" "gnupg-$curr_ver/" > $tmp_name || true
echo "Making patch file"
@@ -31,12 +31,12 @@ cat <<EOF > $diff_name
This is a patch file against $prev_ver.
-Change to directory g10-$prev_ver (or however you renamed it)
+Change to directory gnupg-$prev_ver (or however you renamed it)
and give this command:
- zcat somepath/g10-$curr_ver.diff.gz | patch -p1
+ zcat somepath/gnupg-$curr_ver.diff.gz | patch -p1
-It is a good idea to rename your current directory to g10-$curr_ver now.
+It is a good idea to rename your current directory to gnupg-$curr_ver now.
@@ -54,12 +54,12 @@ echo "Compressing patch file"
gzip -9 $diff_name
echo "Checking patch file"
-cd g10-$prev_ver
+cd gnupg-$prev_ver
zcat ../$diff_name.gz | patch -s -p1
rm $(find . -name "*.orig")
cd ..
-if ! diff -urN "g10-$prev_ver/" "g10-$curr_ver/" >/dev/null ; then
+if ! diff -urN "gnupg-$prev_ver/" "gnupg-$curr_ver/" >/dev/null ; then
echo "compare failed"
exit 1
fi
@@ -67,8 +67,8 @@ fi
echo "cleaning up"
-rm -rf "g10-$curr_ver"
-rm -rf "g10-$prev_ver"
+rm -rf "gnupg-$curr_ver"
+rm -rf "gnupg-$prev_ver"
echo "Patch file $diff_name.gz is good."