ceph/sign.sh

26 lines
514 B
Bash
Raw Normal View History

#!/bin/bash
set -e
vers=$1
debsubver=$2
[ -z "$debsubver" ] && debsubver="1"
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
[ -z "$vers" ] && echo specify version && exit 1
echo version $vers
#./pull.sh $vers dsc changes
for f in `cd release/$vers ; ls *-$debsubver*.{dsc,changes}`
do
if [ -e "release/$vers/$f" ]; then
if head -1 release/$vers/$f | grep -q 'BEGIN PGP SIGNED MESSAGE' ; then
echo already signed $f
else
2010-04-30 22:11:19 +00:00
debsign -k288995c8 release/$vers/$f
fi
fi
2010-04-30 22:11:19 +00:00
done