2 ## Copyright 1998,1999 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
4 ## of this package for details.
7 # mkrelease RELNAME CVSTAG CVSMODULES
8 # where CVSTAG is the tag to export from the current CVSROOT
11 set -e # exit immediately if any errors occur
13 if test $# != 3 ; then
14 echo 'usage: mkrelease RELNAME CVSTAG CVSMODULES ...'
23 if test -e $RELNAME ; then
24 echo "error: $RELNAME exists"
28 echo Release: $RELNAME
32 cvs -q export -r $CVSTAG -d $RELNAME $*
34 if test ! -d $RELNAME ; then
35 echo "error: $RELNAME doesn't exists"
39 if test ! -e $RELNAME/build/version ; then
40 echo "No build version"
44 tar cf $RELNAME.tar $RELNAME
45 gzip -9 -c $RELNAME.tar > $RELNAME.tgz
46 md5 $RELNAME.tgz > $RELNAME.md5
49 cat $RELNAME/build/version