summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-05-22 17:14:58 +0000
committerng0 <ng0@n0.is>2019-05-22 17:14:58 +0000
commit3ca7a0b09ce7f045258a84aefd45c2c1e8c7a549 (patch)
tree0799d1adca5a431cbbc695f0f1875112befdb1bb
parentd9761176a91dde2c61c963c7f0bb13c678cbefc8 (diff)
downloadgnurl-3ca7a0b09ce7f045258a84aefd45c2c1e8c7a549.tar.gz
gnurl-3ca7a0b09ce7f045258a84aefd45c2c1e8c7a549.tar.bz2
gnurl-3ca7a0b09ce7f045258a84aefd45c2c1e8c7a549.zip
maketgz: do not assume everyone runs my system
-rwxr-xr-xmaketgz14
1 files changed, 11 insertions, 3 deletions
diff --git a/maketgz b/maketgz
index 54e508597..741308efe 100755
--- a/maketgz
+++ b/maketgz
@@ -222,8 +222,16 @@ echo "maketgz report:"
echo ""
ls -l $targz $compressfile $paxz
+FILES=$targz $compressfile $paxz
+
echo "Run this:"
echo "gpg2 -b -a $targz && gpg2 -b -a $compressfile && gpg2 -b -a $paxz"
-sha1 $targz $compressfile $paxz
-sum -a SHA512 $targz $compressfile $paxz
-rmd160 $targz $compressfile $paxz
+if [ -x sha1 ]; then
+ sha1 $FILES
+fi
+if [ -x sum ]; then
+ sum -a SHA512 $FILES
+fi
+if [ -x rmd160 ]; then
+ rmd160 $FILES
+fi