gbp-svn-tag 483 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. #
  3. # Helper script to tag a version in SVN if using git-svn(1)
  4. DIST=$(dpkg-parsechangelog | awk "/^Distribution:/{ print \$2; }")
  5. VERSION=$(dpkg-parsechangelog | awk "/^Version:/{ print \$2; }")
  6. PKG=$(dpkg-parsechangelog | awk "/^Source:/{ print \$2; }")
  7. if [ "$DIST" = "UNRELEASED" ]; then
  8. echo "Distribution is unreleased"
  9. exit 1
  10. elif [ -z "$VERSION" ]; then
  11. echo "Cant read package version"
  12. exit 1
  13. fi
  14. git svn tag -m"Tagging $PKG ($VERSION)" $VERSION