3 ## Copyright 1998-2000 The OpenLDAP Foundation
4 ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
5 ## of this package for details.
8 # mkrelease RELNAME CVSTAG CVSMODULES
9 # where CVSTAG is the tag to export from the current CVSROOT
12 set -e # exit immediately if any errors occur
14 if test $# != 3 ; then
15 echo 'usage: mkrelease RELNAME CVSTAG CVSMODULES ...'
24 if test -e $RELNAME ; then
25 echo "error: $RELNAME exists"
29 echo Release: $RELNAME
33 cvs -q export -r $CVSTAG -d $RELNAME $*
35 if test ! -d $RELNAME ; then
36 echo "error: $RELNAME doesn't exists"
40 if test ! -e $RELNAME/build/version.sh ; then
41 echo "No build version"
45 $RELNAME/build/version.sh
47 tar cf $RELNAME.tar $RELNAME
48 gzip -9 -c $RELNAME.tar > $RELNAME.tgz
49 md5 $RELNAME.tgz > $RELNAME.md5
53 cat $RELNAME/build/version