]> git.sur5r.net Git - openldap/blob - build/version.sh
Remove broken MSVC build from REL_ENG branch.
[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-2003 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_type=Release
22 elif test $ol_minor != X ; then
23         ol_version=${ol_major}.${ol_minor}.${ol_patch}
24         ol_type=Engineering
25 else
26         ol_version=${ol_major}.${ol_minor}
27         ol_type=Devel
28         ol_api_lib=0:0:0
29 fi
30
31 ol_string="${ol_package} ${ol_version}-${ol_type}"
32
33 echo OL_PACKAGE=\"${ol_package}\"
34 echo OL_MAJOR=$ol_major
35 echo OL_MINOR=$ol_minor
36 echo OL_PATCH=$ol_patch
37 echo OL_API_INC=$ol_api_inc
38 echo OL_API_LIB=$ol_api_lib
39 echo OL_VERSION=$ol_version
40 echo OL_TYPE=$ol_type
41 echo OL_STRING=\"${ol_string}\"
42 echo OL_RELEASE_DATE=\"${ol_release_date}\"