| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
VERSION=$(grep AC_INIT configure.ac | cut -f 2 -d , | tr -d ")" | tr -d " []") |
| 6 |
echo "Going to release version: $VERSION" |
| 7 |
tail -n20 ChangeLog |
| 8 |
echo "Press enter to continue:" |
| 9 |
read enter |
| 10 |
autoconf |
| 11 |
if ! git diff --exit-code ; then |
| 12 |
echo |
| 13 |
echo "Changes present, please commit before continue" |
| 14 |
exit 1 |
| 15 |
fi |
| 16 |
git tag -u $DEBSIGN_KEYID --message "Release $VERSION" release/$VERSION |
| 17 |
git archive --format=tar --prefix=at-$VERSION/ --output=../at_$VERSION.orig.tar release/$VERSION |
| 18 |
gzip -v9 ../at_$VERSION.orig.tar |
| 19 |
git checkout debian |
| 20 |
gbp import-orig --verbose --keyid=$DEBSIGN_KEYID -u$VERSION --pristine-tar ../at_$VERSION.orig.tar.gz |