summaryrefslogtreecommitdiff
path: root/version.sh
blob: 09a958e403133e679d33ba5cc0688406279f4f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh

# Making releases:
#   1. For normal releases
#        Increment XINE_VERSION_SUB
#        Clear XINE_VERSION_PATCH
#      For patch releases
#        Increment XINE_VERSION_PATCH (use ".1", ".2" etc.)
#   2. Remove .cvsversion before running make dist
#   3. Adjust the values of XINE_LT_CURRENT, XINE_LT_REVISION, and XINE_LT_AGE
#      according to the following rules:
#
#      1. Increment XINE_LT_REVISION.
#      2. If any interfaces have been added, removed, or changed, set
#         XINE_LT_REVISION to 0 and increment XINE_LT_CURRENT.
#      3. If any interfaces have been added, increment XINE_LT_AGE.
#      4. If any interfaces have been removed or incompatibly changed,
#         set XINE_LT_AGE to 0, and rename po/libxine*.pot accordingly
#         (use "hg rename").
#
# The most important thing to keep in mind is that the libtool version
# numbers DO NOT MATCH the xine-lib version numbers, and you should NEVER
# try to make them match.
#
# See the libtool documentation for more information.
#
#   XINE_LT_CURRENT     the current API version
#   XINE_LT_REVISION    the current revision of the current API
#   XINE_LT_AGE         the number of previous API versions still supported

XINE_VERSION_MAJOR=1
XINE_VERSION_MINOR=2
XINE_VERSION_SUB=1
XINE_VERSION_PATCH=
# Release series number (usually $XINE_MAJOR.$XINE_MINOR)
XINE_VERSION_SERIES=1.2

XINE_LT_CURRENT=3
XINE_LT_REVISION=0
XINE_LT_AGE=1

test -f "`dirname $0`/.cvsversion" && XINE_VERSION_SUFFIX="hg"
XINE_VERSION_SPEC="${XINE_VERSION_MAJOR}.${XINE_VERSION_MINOR}.${XINE_VERSION_SUB}${XINE_VERSION_PATCH}${XINE_VERSION_SUFFIX}"

####
####    You should not need to touch anything beyond this point
####

echo "m4_define([XINE_VERSION_MAJOR],  [${XINE_VERSION_MAJOR}])dnl"
echo "m4_define([XINE_VERSION_MINOR],  [${XINE_VERSION_MINOR}])dnl"
echo "m4_define([XINE_VERSION_SUB],    [${XINE_VERSION_SUB}])dnl"
echo "m4_define([XINE_VERSION_PATCH],  [${XINE_VERSION_PATCH}])dnl"
echo "m4_define([XINE_VERSION_SUFFIX], [${XINE_VERSION_SUFFIX}])dnl"
echo "m4_define([XINE_VERSION_SPEC],   [${XINE_VERSION_SPEC}])dnl"
echo "m4_define([XINE_VERSION_SERIES], [${XINE_VERSION_SERIES}])dnl"
echo "m4_define([__XINE_LT_CURRENT],   [${XINE_LT_CURRENT}])dnl"
echo "m4_define([__XINE_LT_REVISION],  [${XINE_LT_REVISION}])dnl"
echo "m4_define([__XINE_LT_AGE],       [${XINE_LT_AGE}])dnl"