]> git.sur5r.net Git - openldap/blob - build/version.sh
Do not require ac/string.h for lber_pvt.h
[openldap] / build / version.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2018 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 DIR=`dirname $0`
17 . $DIR/version.var
18
19 if test $ol_patch != X ; then
20         ol_version=${ol_major}.${ol_minor}.${ol_patch}
21         ol_api_lib_release=${ol_major}.${ol_minor}
22         ol_type=Release
23 elif test $ol_minor != X ; then
24         ol_version=${ol_major}.${ol_minor}.${ol_patch}
25         ol_api_lib_release=${ol_major}.${ol_minor}-releng
26         ol_type=Engineering
27 else
28         ol_version=${ol_major}.${ol_minor}
29         ol_api_lib_release=${ol_major}-devel
30         ol_type=Devel
31 fi
32
33 ol_string="${ol_package} ${ol_version}-${ol_type}"
34 ol_api_lib_version="${ol_api_current}:${ol_api_revision}:${ol_api_age}"
35
36 echo OL_PACKAGE=\"${ol_package}\"
37 echo OL_MAJOR=$ol_major
38 echo OL_MINOR=$ol_minor
39 echo OL_PATCH=$ol_patch
40 echo OL_API_INC=$ol_api_inc
41 echo OL_API_LIB_RELEASE=$ol_api_lib_release
42 echo OL_API_LIB_VERSION=$ol_api_lib_version
43 echo OL_VERSION=$ol_version
44 echo OL_TYPE=$ol_type
45 echo OL_STRING=\"${ol_string}\"
46 echo OL_RELEASE_DATE=\"${ol_release_date}\"