summaryrefslogtreecommitdiff
path: root/bin/signtarballs
blob: 81fa5969c7e948e459ce257d52dcdd6324528820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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 || md5sum $tarball > $tarball.md5
	test -f $tarball.sha1 || sha1sum $tarball > $tarball.sha1
	test -f $tarball.asc || gpg -a -b --sign $tarball
done