xref: /netbsd-src/external/bsd/openldap/dist/build/version.sh (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
12de962bdSlukem#! /bin/sh
2d11b170bStron# $OpenLDAP$
32de962bdSlukem## This work is part of OpenLDAP Software <http://www.openldap.org/>.
42de962bdSlukem##
5*e670fd5cSchristos## Copyright 1998-2021 The OpenLDAP Foundation.
62de962bdSlukem## All rights reserved.
72de962bdSlukem##
82de962bdSlukem## Redistribution and use in source and binary forms, with or without
92de962bdSlukem## modification, are permitted only as authorized by the OpenLDAP
102de962bdSlukem## Public License.
112de962bdSlukem##
122de962bdSlukem## A copy of this license is available in the file LICENSE in the
132de962bdSlukem## top-level directory of the distribution or, alternatively, at
142de962bdSlukem## <http://www.OpenLDAP.org/license.html>.
152de962bdSlukem
162de962bdSlukemDIR=`dirname $0`
172de962bdSlukem. $DIR/version.var
182de962bdSlukem
192de962bdSlukemif test $ol_patch != X ; then
202de962bdSlukem	ol_version=${ol_major}.${ol_minor}.${ol_patch}
212de962bdSlukem	ol_api_lib_release=${ol_major}.${ol_minor}
222de962bdSlukem	ol_type=Release
232de962bdSlukemelif test $ol_minor != X ; then
242de962bdSlukem	ol_version=${ol_major}.${ol_minor}.${ol_patch}
25*e670fd5cSchristos	ol_api_lib_release=${ol_major}.${ol_minor}.releng
262de962bdSlukem	ol_type=Engineering
272de962bdSlukemelse
282de962bdSlukem	ol_version=${ol_major}.${ol_minor}
29*e670fd5cSchristos	ol_api_lib_release=${ol_major}.devel
302de962bdSlukem	ol_type=Devel
312de962bdSlukemfi
322de962bdSlukem
332de962bdSlukemol_string="${ol_package} ${ol_version}-${ol_type}"
342de962bdSlukemol_api_lib_version="${ol_api_current}:${ol_api_revision}:${ol_api_age}"
352de962bdSlukem
362de962bdSlukemecho OL_PACKAGE=\"${ol_package}\"
372de962bdSlukemecho OL_MAJOR=$ol_major
382de962bdSlukemecho OL_MINOR=$ol_minor
392de962bdSlukemecho OL_PATCH=$ol_patch
402de962bdSlukemecho OL_API_INC=$ol_api_inc
412de962bdSlukemecho OL_API_LIB_RELEASE=$ol_api_lib_release
422de962bdSlukemecho OL_API_LIB_VERSION=$ol_api_lib_version
432de962bdSlukemecho OL_VERSION=$ol_version
442de962bdSlukemecho OL_TYPE=$ol_type
452de962bdSlukemecho OL_STRING=\"${ol_string}\"
462de962bdSlukemecho OL_RELEASE_DATE=\"${ol_release_date}\"
47