2 # $OpenLDAP: pkg/ldap/build/version.sh,v 1.16.2.3 2008/02/11 23:26:38 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
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>.
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}
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
28 ol_version
=${ol_major}.
${ol_minor}
29 ol_api_lib_release
=${ol_major}-devel
33 ol_string
="${ol_package} ${ol_version}-${ol_type}"
34 ol_api_lib_version
="${ol_api_current}:${ol_api_revision}:${ol_api_age}"
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
45 echo OL_STRING
=\"${ol_string}\"
46 echo OL_RELEASE_DATE
=\"${ol_release_date}\"