File: prerelease-tag

package info (click to toggle)
cheetah 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,052 kB
  • sloc: python: 10,653; ansic: 584; xml: 323; sh: 181; makefile: 87
file content (19 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

if [ -z "$1" -o -n "$2" ]; then
   echo "Usage: $0 new_tag" >&2
   exit 1
else
   tag="$1"
fi

. `dirname $0`/split_tag.sh &&
split_tag $tag

if [ $micro -eq 0 -o \( $state != final -a $state != post \) ]; then
   git checkout master
else
   git checkout maint
fi &&

exec git tag --message="Release $tag" --sign $tag