summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-02-10 22:24:26 +0100
committerMihai Moldovan <ionic@ionic.de>2015-02-10 22:24:26 +0100
commita7d0e8dbd446a4d5828bc82b79e75bf997b39ee7 (patch)
tree7afabd028cf5f14862191bc8d8ff065e381752b0 /bin
parent385f55f1484cf9e8cbe3968ddf27d2ce8d69c32e (diff)
downloadbuildscripts-a7d0e8dbd446a4d5828bc82b79e75bf997b39ee7.tar.gz
buildscripts-a7d0e8dbd446a4d5828bc82b79e75bf997b39ee7.tar.bz2
buildscripts-a7d0e8dbd446a4d5828bc82b79e75bf997b39ee7.zip
signtarballs: quote variables/filenames, add even more verbosity.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/signtarballs12
1 files changed, 4 insertions, 8 deletions
diff --git a/bin/signtarballs b/bin/signtarballs
index 12be260..9a81b77 100755
--- a/bin/signtarballs
+++ b/bin/signtarballs
@@ -3,12 +3,8 @@
test -d _releases_ && cd _releases_ || test -d ../_releases_ && cd ../_releases_ || exit -1
find * -type f | egrep ".*(\.zip|\.tar\.gz|\.exe|\.dmg)$" | while read tarball; do
- test -f $tarball.md5 || md5sum $tarball | tee $tarball.md5
- test -f $tarball.sha1 || sha1sum $tarball | tee $tarball.sha1
- test -f $tarball.sha256 || sha256sum $tarball | tee $tarball.sha256
- test -f $tarball.asc || gpg -a -b --sign $tarball
+ test -f "${tarball}.md5" || { printf "${tarball}.md5: "; md5sum "${tarball}" | tee "${tarball}.md5"; }
+ test -f "${tarball}.sha1" || { printf "${tarball}.sha1: "; sha1sum "${tarball}" | tee "${tarball}.sha1"; }
+ test -f "${tarball}.sha256" || { printf "${tarball}.sha256: "; sha256sum "${tarball}" | tee "${tarball}.sha256"; }
+ test -f "${tarball}.asc" || { printf "signing ${tarball}... "; gpg -a -b --sign "${tarball}"; printf 'done.\n'; }
done
-
-
-
-