x
[heimdal.git] / make-release
blobb91f3f02c6d47a8289d82ac46844079023e7842a
1 #!/bin/sh
2 # $Id$
4 if [ ! -f configure.in ]; then
5 echo "Must be in top directory"
6 exit 1
7 fi
9 if [ $# -ne 1 -a $# -ne 2 ]; then
10 echo "make-release version [branch]"
11 exit 1
14 if [ "$2" != "" ]; then
15 rev="-r $2"
16 elif [ -f CVS/Tag ]; then
17 rev="-r `cat CVS/Tag | sed 's/^T//'`"
20 HV="$1" emacs -batch -q -no-site-file -l ./make-release.el || exit
22 echo cvs ci -m \"Release $1\" configure.in ChangeLog
23 cvs ci -m "Release $1" configure.in ChangeLog || exit 1
24 v=`echo $1 | sed 's/\([0-9][0-9]*\)\./\1-/g'`
25 echo cvs -q rtag -F $rev heimdal-$v heimdal
26 cvs -q rtag -F $rev heimdal-$v heimdal || exit 1