[S11n-cvs] SF.net SVN: s11n: [113] trunk/sign_dist.sh
Brought to you by:
sgbeal
From: <sg...@us...> - 2008-04-25 00:20:27
|
Revision: 113 http://s11n.svn.sourceforge.net/s11n/?rev=113&view=rev Author: sgbeal Date: 2008-04-24 17:20:21 -0700 (Thu, 24 Apr 2008) Log Message: ----------- egg Added Paths: ----------- trunk/sign_dist.sh Added: trunk/sign_dist.sh =================================================================== --- trunk/sign_dist.sh (rev 0) +++ trunk/sign_dist.sh 2008-04-25 00:20:21 UTC (rev 113) @@ -0,0 +1,25 @@ +#!/bin/bash +# Quick hack to generate .sig files for +infiles=$(ls libs11n-*.gz libs11n-*.bz2 libs11n-*.zip libs11n-*.deb 2>/dev/null) + +test x = "x${infiles}" && { + echo "No dist files found." + exit 127 +} + +bailout() +{ + err=$1 + shift + echo "Error: " $@ + exit $err +} + +KLUDGE_GPGKEYID="-u 93DA9E0B" # the official s11n.net key for signing downloadables. +for i in $infiles; do + sig=$i.sig + test -f $sig && rm -f $sig + gpg ${KLUDGE_GPGKEYID} --armor --output $sig --detach-sig $i || bailout $? "Signing failed" + gpg ${KLUDGE_GPGKEYID} --verify $sig $i || bailout $? "Verification failed" + echo "Signed: $sig" +done Property changes on: trunk/sign_dist.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |