2010-03-01 04:19:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
vers=$1
|
2010-10-18 19:55:49 +00:00
|
|
|
debsubver=$2
|
|
|
|
|
|
|
|
[ -z "$debsubver" ] && debsubver="1"
|
|
|
|
|
2010-07-08 21:27:57 +00:00
|
|
|
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
|
2010-03-01 04:19:04 +00:00
|
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
2010-07-08 21:27:57 +00:00
|
|
|
echo version $vers
|
2010-03-01 04:19:04 +00:00
|
|
|
|
2010-05-10 23:00:22 +00:00
|
|
|
#./pull.sh $vers dsc changes
|
2010-03-01 04:19:04 +00:00
|
|
|
|
2010-10-18 19:55:49 +00:00
|
|
|
for f in `cd release/$vers ; ls *-$debsubver*.{dsc,changes}`
|
2010-03-01 04:19:04 +00:00
|
|
|
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
|
2010-03-01 04:19:04 +00:00
|
|
|
fi
|
|
|
|
fi
|
2010-04-30 22:11:19 +00:00
|
|
|
done
|