#!/bin/sh # # tag: # # Copyright (c) 2008 James McKenzie , # All rights reserved. # # $Id$ # # $Log$ # Revision 1.2 2008/02/27 09:49:25 james # *** empty log message *** # # Revision 1.1 2008/02/03 16:20:24 james # *** empty log message *** # # # # set -x cvs commit -m "" FILES=`cat version-files` CHK=`cat $FILES | md5sum | awk '{print $1}'` TG=`grep $CHK version-md5sums | awk '{print $2}'` if [ .$TG != . ]; then echo This code already tagged as Version $TG exit 0 fi MAJOR=`cat version-major` MINOR=`cat version-minor` MICRO=$[ `cat version-micro` + 1 ] echo $MICRO > version-micro echo "$CHK ${MAJOR}.${MINOR}.${MICRO}" >> version-md5sums cvs commit -m "" cvs tag libsympathy-$MAJOR_$MINOR_$MICRO .