File: gbp-svn-tag

package info (click to toggle)
git-buildpackage 0.6.22~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 3,296 kB
  • sloc: python: 9,300; xml: 6,943; sh: 416; makefile: 84
file content (19 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# Helper script to tag a version in SVN if using git-svn(1)

DIST=$(dpkg-parsechangelog | awk "/^Distribution:/{ print \$2; }")
VERSION=$(dpkg-parsechangelog | awk "/^Version:/{ print \$2; }")
PKG=$(dpkg-parsechangelog | awk "/^Source:/{ print \$2; }")


if [ "$DIST" = "UNRELEASED" ]; then
    echo "Distribution is unreleased"
    exit 1
elif [ -z "$VERSION" ]; then
    echo "Cant read package version"
    exit 1
fi

git svn tag -m"Tagging $PKG ($VERSION)" $VERSION