~ttx/openldap/lucid-gssapi-495418

« back to all changes in this revision

Viewing changes to build/mkrelease

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2008-07-10 14:45:49 UTC
  • Revision ID: james.westby@ubuntu.com-20080710144549-wck73med0e72gfyo
Tags: upstream-2.4.10
ImportĀ upstreamĀ versionĀ 2.4.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# $OpenLDAP: pkg/ldap/build/mkrelease,v 1.23.2.4 2008/02/11 23:26:37 kurt Exp $
 
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 
4
##
 
5
## Copyright 1998-2008 The OpenLDAP Foundation.
 
6
## All rights reserved.
 
7
##
 
8
## Redistribution and use in source and binary forms, with or without
 
9
## modification, are permitted only as authorized by the OpenLDAP
 
10
## Public License.
 
11
##
 
12
## A copy of this license is available in the file LICENSE in the
 
13
## top-level directory of the distribution or, alternatively, at
 
14
## <http://www.OpenLDAP.org/license.html>.
 
15
#
 
16
# Make a release
 
17
#       mkrelease RELNAME CVSTAG CVSMODULES
 
18
# where CVSTAG is the tag to export from the current CVSROOT
 
19
#
 
20
 
 
21
#
 
22
# This script MUST NOT add files to the export nor modify
 
23
# any file in the export.
 
24
#
 
25
 
 
26
set -e          # exit immediately if any errors occur
 
27
 
 
28
if test $# != 3 ; then
 
29
        echo 'usage: mkrelease RELNAME CVSTAG CVSMODULES ...'
 
30
        exit 1
 
31
fi
 
32
 
 
33
RELNAME=openldap-$1
 
34
shift
 
35
CVSTAG=$1
 
36
shift
 
37
 
 
38
if test -e $RELNAME ; then
 
39
        echo "error: $RELNAME exists"
 
40
        exit 1
 
41
fi
 
42
 
 
43
echo Release: $RELNAME
 
44
echo CVS Tag: $CVSTAG
 
45
echo Modules: $*
 
46
 
 
47
cvs -q export -kkv -r $CVSTAG -d $RELNAME $*
 
48
 
 
49
if test ! -d $RELNAME ; then
 
50
        echo "error: $RELNAME doesn't exists"
 
51
        exit 1
 
52
fi
 
53
 
 
54
if test -e $RELNAME/doc/guide/admin/guide.sdf ; then
 
55
        echo "build guide..."
 
56
        ( cd $RELNAME/doc/guide/admin ; make guide.html )
 
57
else
 
58
        echo "No guide"
 
59
fi
 
60
 
 
61
if test -e $RELNAME/libraries/liblunicode/ucdata/uctable.h ; then
 
62
        echo "touching uctable.h..."
 
63
        touch $RELNAME/libraries/liblunicode/ucdata/uctable.h
 
64
fi
 
65
 
 
66
if test ! -e $RELNAME/build/version.sh ; then
 
67
        echo "No build version"
 
68
        OL_STRING="something"
 
69
else
 
70
        eval `$RELNAME/build/version.sh`
 
71
fi
 
72
 
 
73
echo "Rolling up $OL_STRING ..."
 
74
 
 
75
 
 
76
tar cf $RELNAME.tar $RELNAME
 
77
gzip -9 -c $RELNAME.tar > $RELNAME.tgz
 
78
md5 $RELNAME.tgz > $RELNAME.md5
 
79
sha1 $RELNAME.tgz > $RELNAME.sha1
 
80
rm -f $RELNAME.tar
 
81
 
 
82
ls -l $RELNAME.*
 
83
 
 
84
echo "Made $OL_STRING as $RELNAME.tgz"