blob: 9a81b772367593e873a26e74df7a28beb7ccb83f (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
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" || { 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
|