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