From fd7df67117c92f2ce591e7ec7b78a1bb23ecc839 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 28 Mar 2003 19:33:40 +0000 Subject: [PATCH] Split version.sh to version.var; fix invocation in mkrelease --- build/mkrelease | 2 +- build/version.sh | 9 ++------- build/version.var | 13 +++++++++++++ 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 build/version.var diff --git a/build/mkrelease b/build/mkrelease index cf01220a4b..06c7f67832 100755 --- a/build/mkrelease +++ b/build/mkrelease @@ -47,7 +47,7 @@ if test ! -e $RELNAME/build/version.sh ; then exit 1 fi -. $RELNAME/build/version.sh +eval `$RELNAME/build/version.sh` tar cf $RELNAME.tar $RELNAME gzip -9 -c $RELNAME.tar > $RELNAME.tgz diff --git a/build/version.sh b/build/version.sh index 2308efee2e..f2cf16fea0 100755 --- a/build/version.sh +++ b/build/version.sh @@ -4,13 +4,8 @@ ## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory ## of this package for details. # -ol_package=OpenLDAP -ol_major=2 -ol_minor=X -ol_patch=X -ol_api_inc=000000 -ol_api_lib=0:0:0 -ol_release_date="00/00/0000" +DIR=`dirname $0` +. $DIR/version.var if test $ol_patch != X ; then ol_version=${ol_major}.${ol_minor}.${ol_patch} diff --git a/build/version.var b/build/version.var new file mode 100644 index 0000000000..f3fb643f78 --- /dev/null +++ b/build/version.var @@ -0,0 +1,13 @@ +#! /bin/sh +# $OpenLDAP$ +## Copyright 2000-2003 The OpenLDAP Foundation +## COPYING RESTRICTIONS APPLY. See COPYRIGHT File in top level directory +## of this package for details. +# +ol_package=OpenLDAP +ol_major=2 +ol_minor=X +ol_patch=X +ol_api_inc=000000 +ol_api_lib=0:0:0 +ol_release_date="00/00/0000" -- 2.39.5