]> git.sur5r.net Git - openldap/commitdiff
Update to 2.1 engineering
authorKurt Zeilenga <kurt@openldap.org>
Mon, 18 Feb 2002 17:50:47 +0000 (17:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 18 Feb 2002 17:50:47 +0000 (17:50 +0000)
build/version.sh [new file with mode: 0755]

diff --git a/build/version.sh b/build/version.sh
new file mode 100755 (executable)
index 0000000..a7bc0c6
--- /dev/null
@@ -0,0 +1,36 @@
+#! /bin/sh
+# $OpenLDAP$
+## Copyright 2000-2002 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=1
+ol_patch=X
+ol_api_inc=20199
+ol_api_lib=2:99:0
+
+if test $ol_patch != X ; then
+       ol_version=${ol_major}.${ol_minor}.${ol_patch}
+       ol_type=Release
+elif test $ol_minor != X ; then
+       ol_version=${ol_major}.${ol_minor}.${ol_patch}
+       ol_type=Engineering
+else
+       ol_version=${ol_major}.${ol_minor}
+       ol_type=Devel
+       ol_api_lib=0:0:0
+fi
+
+ol_string="${ol_package} ${ol_version}-${ol_type}"
+
+echo OL_PACKAGE=\"${ol_package}\"
+echo OL_MAJOR=$ol_major
+echo OL_MINOR=$ol_minor
+echo OL_PATCH=$ol_patch
+echo OL_API_INC=$ol_api_inc
+echo OL_API_LIB=$ol_api_lib
+echo OL_VERSION=$ol_version
+echo OL_TYPE=$ol_type
+echo OL_STRING=\"${ol_string}\"