Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / openldap / dist / build / version.sh
blobf272600f6198bf0dd319df2d77dc5e0507406b90
1 #! /bin/sh
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/>.
4 ##
5 ## Copyright 1998-2008 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.
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>.
16 DIR=`dirname $0`
17 . $DIR/version.var
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
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
44 echo OL_TYPE=$ol_type
45 echo OL_STRING=\"${ol_string}\"
46 echo OL_RELEASE_DATE=\"${ol_release_date}\"