1#! /bin/sh
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2021 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
16DIR=`dirname $0`
17. $DIR/version.var
18
19if 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
23elif 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
27else
28	ol_version=${ol_major}.${ol_minor}
29	ol_api_lib_release=${ol_major}.devel
30	ol_type=Devel
31fi
32
33ol_string="${ol_package} ${ol_version}-${ol_type}"
34ol_api_lib_version="${ol_api_current}:${ol_api_revision}:${ol_api_age}"
35
36echo OL_PACKAGE=\"${ol_package}\"
37echo OL_MAJOR=$ol_major
38echo OL_MINOR=$ol_minor
39echo OL_PATCH=$ol_patch
40echo OL_API_INC=$ol_api_inc
41echo OL_API_LIB_RELEASE=$ol_api_lib_release
42echo OL_API_LIB_VERSION=$ol_api_lib_version
43echo OL_VERSION=$ol_version
44echo OL_TYPE=$ol_type
45echo OL_STRING=\"${ol_string}\"
46echo OL_RELEASE_DATE=\"${ol_release_date}\"
47