File: nextversion.sh

package info (click to toggle)
notion 3%2B2015061300-2
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 4,904 kB
  • ctags: 6,037
  • sloc: ansic: 46,788; sh: 2,005; makefile: 548; perl: 270
file content (18 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

PREFIX=3-`date +"%Y%m%d"`

alreadyTagged() {
  #nfound = git tag -l | grep $1 | wc
  return 0;
}

for minor in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20
do
  VERSION=$PREFIX$minor
  if [ "0" = "`git tag -l | grep $VERSION | wc -l`" ]
  then
    echo $PREFIX$minor;
    exit 1
  fi
done