File: _tag-release.sh

package info (click to toggle)
libgoby-java 3.3.1%2Bdfsg2-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,108 kB
  • sloc: java: 78,105; cpp: 5,011; xml: 3,170; python: 2,108; sh: 1,575; ansic: 277; makefile: 114
file content (14 lines) | stat: -rwxr-xr-x 227 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

VERSION=$1

if [[ $VERSION == *"SNAPSHOT"* ]] ;then
  echo "Current version is set to ${VERSION}. Can't tag a snapshot!";
  exit 1
fi

WORKDIR=`pwd`
cd ..
git tag "r${VERSION}"
git push --tags
cd ${WORKDIR}