]> git.sur5r.net Git - openldap/blob - build/mkrelease
Kill lber_debug
[openldap] / build / mkrelease
1 #! /bin/sh
2 ## Copyright 1998,1999 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
4 ## of this package for details.
5 #
6 # Make a release
7 #       mkrelease RELNAME CVSTAG CVSMODULES
8 # where CVSTAG is the tag to export from the current CVSROOT
9 #
10
11 set -e          # exit immediately if any errors occur
12
13 if test $# != 3 ; then
14         echo 'usage: mkrelease RELNAME CVSTAG CVSMODULES ...'
15         exit 1
16 fi
17
18 RELNAME=openldap-$1
19 shift
20 CVSTAG=$1
21 shift
22
23 if test -e $RELNAME ; then
24         echo "error: $RELNAME exists"
25         exit 1
26 fi
27
28 echo Release: $RELNAME
29 echo CVS Tag: $CVSTAG
30 echo Modules: $*
31
32 cvs -q export -r $CVSTAG -d $RELNAME $*
33
34 if test ! -d $RELNAME ; then
35         echo "error: $RELNAME doesn't exists"
36         exit 1
37 fi
38
39 if test ! -e $RELNAME/build/version ; then
40         echo "No build version"
41         exit 1
42 fi
43
44 tar cf $RELNAME.tar $RELNAME
45 gzip -9 -c $RELNAME.tar > $RELNAME.tgz
46 md5 $RELNAME.tgz > $RELNAME.md5
47
48 ls -l $RELNAME.*
49 cat $RELNAME/build/version