File: release

package info (click to toggle)
at 3.2.5-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: sh: 3,139; ansic: 2,620; yacc: 578; makefile: 214; lex: 92; perl: 62
file content (20 lines) | stat: -rwxr-xr-x 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

VERSION=$(grep AC_INIT configure.ac | cut -f 2 -d , | tr -d ")" | tr -d " []")
echo "Going to release version: $VERSION"
tail -n20 ChangeLog
echo "Press enter to continue:"
read enter
autoconf
if ! git diff --exit-code ; then
    echo
    echo "Changes present, please commit before continue"
    exit 1
fi
git tag -u $DEBSIGN_KEYID --message "Release $VERSION" release/$VERSION
git archive --format=tar --prefix=at-$VERSION/ --output=../at_$VERSION.orig.tar release/$VERSION
gzip -v9 ../at_$VERSION.orig.tar
git checkout debian
gbp import-orig --verbose --keyid=$DEBSIGN_KEYID -u$VERSION --pristine-tar ../at_$VERSION.orig.tar.gz