1 | ## $Id: version.m4 1264 2010-11-02 00:46:21Z peter $ |
---|
2 | # |
---|
3 | # Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
4 | # Copyright (C) 2009, 2010 Peter Johansson |
---|
5 | # |
---|
6 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
7 | # |
---|
8 | # svndigest is free software; you can redistribute it and/or modify it |
---|
9 | # under the terms of the GNU General Public License as published by |
---|
10 | # the Free Software Foundation; either version 3 of the License, or |
---|
11 | # (at your option) any later version. |
---|
12 | # |
---|
13 | # svndigest is distributed in the hope that it will be useful, but |
---|
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | # General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | # |
---|
21 | |
---|
22 | # |
---|
23 | # Set version numbers, see http://apr.apache.org/versioning.html |
---|
24 | # |
---|
25 | # MAJOR - Modify when incompatible changes are made |
---|
26 | m4_define([MAJOR_VERSION], [0]) |
---|
27 | # MINOR - Modify when new functionality is added |
---|
28 | m4_define([MINOR_VERSION], [9]) |
---|
29 | # PATCH - Modify for every released patch |
---|
30 | m4_define([PATCH_VERSION], [0]) |
---|
31 | |
---|
32 | # SVNDIGEST_DEV_BUILD - When rolling a tarball we set this to `false'. In |
---|
33 | # repository value remains `true'. |
---|
34 | m4_define([SVNDIGEST_DEV_BUILD], [true]) |
---|
35 | |
---|
36 | |
---|
37 | ### |
---|
38 | ### DO NOT EDIT BELOW THIS LINE |
---|
39 | ### |
---|
40 | |
---|
41 | # Setting SVNDIGEST_VERSION based upon settings above |
---|
42 | m4_define([SVNDIGEST_VERSION],MAJOR_VERSION.MINOR_VERSION) |
---|
43 | # disregarding patch number if zero |
---|
44 | m4_define([SVNDIGEST_VERSION], m4_if(PATCH_VERSION,[0], SVNDIGEST_VERSION, |
---|
45 | SVNDIGEST_VERSION.PATCH_VERSION)) |
---|
46 | m4_define([SVNDIGEST_VERSION], m4_if(SVNDIGEST_DEV_BUILD, |
---|
47 | [true], SVNDIGEST_VERSION[pre], |
---|
48 | SVNDIGEST_VERSION)) |
---|
49 | |
---|