chiark / gitweb /
8f28fafd6d425e0b9f9a4e69f958b0fcf69990c2
[sympathy.git] / maintainer / tag
1 #!/bin/sh
2 #
3 # tag:
4 #
5 # Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
6 # All rights reserved.
7 #
8 # $Id$
9 #
10 # $Log$
11 # Revision 1.3  2008/02/27 09:50:15  james
12 # *** empty log message ***
13 #
14 # Revision 1.2  2008/02/27 09:49:25  james
15 # *** empty log message ***
16 #
17 # Revision 1.1  2008/02/03 16:20:24  james
18 # *** empty log message ***
19 #
20 #
21 #
22 #
23 set -x
24
25 cvs commit -m ""
26
27 FILES=`cat version-files`
28 CHK=`cat $FILES | md5sum | awk '{print $1}'`
29 TG=`grep $CHK version-md5sums | awk '{print $2}'`
30 if [ .$TG != . ]; then
31         echo This code already tagged as Version $TG
32         exit 0
33 fi
34
35 MAJOR=`cat version-major`
36 MINOR=`cat version-minor`
37 MICRO=$[ `cat version-micro` + 1 ]
38
39 echo $MICRO > version-micro
40
41 echo "$CHK      ${MAJOR}.${MINOR}.${MICRO}" >> version-md5sums
42
43 cvs commit -m ""
44 cvs tag libsympathy-${MAJOR}_${MINOR}_${MICRO} .