File: git-tag.sh

package info (click to toggle)
apt-listbugs 0.1.16
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,088 kB
  • ctags: 108
  • sloc: ruby: 2,280; sh: 210; makefile: 49
file content (12 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if test "x$DEBEMAIL" = "x"
then
    echo "please set DEBEMAIL environment variable!" 1>&2
    exit 1
fi

SRCPACK=$(dpkg-parsechangelog -SSource)
VERSION=$(dpkg-parsechangelog -SVersion)
git tag -s -u "$DEBEMAIL" -m "$SRCPACK release $VERSION" "$SRCPACK/$VERSION"