3 ## Copyright 1998-2003 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
13 # This script MUST NOT add files to the export nor modify
14 # any file in the export.
17 set -e # exit immediately if any errors occur
19 if test $# != 3 ; then
20 echo 'usage: mkrelease RELNAME CVSTAG CVSMODULES ...'
29 if test -e $RELNAME ; then
30 echo "error: $RELNAME exists"
34 echo Release: $RELNAME
38 cvs -q export -r $CVSTAG -d $RELNAME $*
40 if test ! -d $RELNAME ; then
41 echo "error: $RELNAME doesn't exists"
45 if test ! -e $RELNAME/build/version.sh ; then
46 echo "No build version"
50 eval `$RELNAME/build/version.sh`
52 tar cf $RELNAME.tar $RELNAME
53 gzip -9 -c $RELNAME.tar > $RELNAME.tgz
54 md5 $RELNAME.tgz > $RELNAME.md5
59 echo "Made $OL_STRING as $RELNAME.tgz"