mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
3b15c6f10f
Remove back-perl, back-sql, back-tcl from branch as they have yet to be updated. Additional changes are needed prior to release of alpha4.
59 lines
983 B
Bash
Executable File
59 lines
983 B
Bash
Executable File
#! /bin/sh
|
|
# $OpenLDAP$
|
|
## Copyright 1998-2000 The OpenLDAP Foundation
|
|
## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
|
|
## of this package for details.
|
|
#
|
|
# Create a version.c file
|
|
#
|
|
PACKAGE=OpenLDAP
|
|
VERSION=unknown
|
|
SYMBOL=__Version
|
|
static=static
|
|
const=const
|
|
while :
|
|
do case "$1" in
|
|
-p)
|
|
PACKAGE=$2
|
|
shift; shift ;;
|
|
-v)
|
|
VERSION=$2
|
|
shift; shift ;;
|
|
|
|
-c)
|
|
const=
|
|
shift ;;
|
|
-n)
|
|
SYMBOL=$2
|
|
shift; shift ;;
|
|
-s)
|
|
static=
|
|
shift ;;
|
|
|
|
# -*) shift ;;
|
|
*)
|
|
break ;;
|
|
esac
|
|
done
|
|
|
|
if test $# != 1 ; then
|
|
echo 'usage: mkversion [-c] [-s] [-p package] [-v version] application'
|
|
exit 1
|
|
fi
|
|
|
|
APPLICATION=$1
|
|
WHEN=`date`
|
|
WHOWHERE="$USER@`uname -n`:`pwd`"
|
|
|
|
cat << __EOF__
|
|
/*
|
|
* Copyright 1998-2000 The OpenLDAP Foundation
|
|
* COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory
|
|
* of this package for details.
|
|
*/
|
|
|
|
$static $const char $SYMBOL[] =
|
|
"@(#) \$$PACKAGE: $APPLICATION $VERSION ($WHEN) \$\n\t$WHOWHERE\n";
|
|
|
|
__EOF__
|