File: release

package info (click to toggle)
at 3.1.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 660 kB
  • sloc: sh: 3,096; ansic: 2,487; yacc: 575; makefile: 203; lex: 91; perl: 62
file content (19 lines) | stat: -rwxr-xr-x 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -e

VERSION=$(grep AC_INIT configure.ac | cut -f 2 -d , | tr -d ")" | tr -d " ")
echo "Going to release version: $VERSION"
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