source: trunk/build_support/version.m4 @ 1606

Last change on this file since 1606 was 1606, checked in by Peter, 13 years ago

fixes #456. YAT_LT_VERSION was already used to I picked YAT_LT_VERSION_INFO intead. Also the declaration was split into current revision and age. Currently those are no AC_SUBSTed out to Makefiles though.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1## $Id: version.m4 1606 2008-10-30 23:44:19Z peter $
2#
3# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
4#
5# This file is part of the yat library, http://dev.thep.lu.se/yat
6#
7# The yat library is free software; you can redistribute it
8# and/or modify it under the terms of the GNU General Public License as
9# published by the Free Software Foundation; either version 3 of the
10# License, or (at your option) any later version.
11#
12# The yat library is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15# General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with yat. If not, see <http://www.gnu.org/licenses/>.
19#
20
21#
22# Set version numbers, see http://apr.apache.org/versioning.html 
23#
24# MAJOR - Modify when incompatible changes are made
25m4_define([MAJOR_VERSION], [0])
26# MINOR - Modify when new functionality is added
27m4_define([MINOR_VERSION], [5])
28# PATCH - Modify for every released patch
29m4_define([PATCH_VERSION], [0])
30
31# DEV_BUILD - When rolling a tarball we set this to `false'. In
32# repository value remains `true'.
33m4_define([DEV_BUILD], [true])
34
35# Library versioning (current:revision:age)
36#
37# How to update library version number
38#
39# current: Increment if the interface has additions, changes, removals.
40#
41# revision: Increment any time the source changes; set to 0 if you
42# incremented 'current'.
43#
44# age: Increment if any interfaces have been added; set to 0 if any
45# interfaces have been removed. removal has precedence over adding, so
46# set to 0 if both happened.
47#
48# See the libtool manual for further explanation of the numbers
49#
50# yat-0.3    undefined
51# yat-0.4    1:0:0
52# yat-0.4.1  1:0:0
53# yat-0.4.2  1:1:0
54#
55m4_define([YAT_LT_CURRENT], [1])
56m4_define([YAT_LT_REVISION], [1])
57m4_define([YAT_LT_AGE], [0])
58
59
60###
61###  DO NOT EDIT BELOW THIS LINE
62###
63
64# Setting YAT_VERSION based upon settings above
65m4_define([YAT_VERSION],MAJOR_VERSION.MINOR_VERSION)
66# disregarding patch number if zero
67m4_define([YAT_VERSION], m4_if(PATCH_VERSION,[0], YAT_VERSION,
68                                  YAT_VERSION.PATCH_VERSION))
69m4_define([YAT_VERSION], m4_if(DEV_BUILD,[true], YAT_VERSION[pre],
70                                  YAT_VERSION))
71
72m4_define([YAT_LT_VERSION_INFO], YAT_LT_CURRENT[:]YAT_LT_REVISION[:]YAT_LT_AGE)
Note: See TracBrowser for help on using the repository browser.