1 | ## $Id: version.m4 613 2008-04-22 14:09:23Z jari $ |
---|
2 | # |
---|
3 | # Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
4 | # |
---|
5 | # This file is part of svndigest, http://trac.thep.lu.se/svndigest |
---|
6 | # |
---|
7 | # svndigest is free software; you can redistribute it and/or modify it |
---|
8 | # under the terms of the GNU General Public License as published by |
---|
9 | # the Free Software Foundation; either version 2 of the License, or |
---|
10 | # (at your option) any later version. |
---|
11 | # |
---|
12 | # svndigest is distributed in the hope that it will be useful, but |
---|
13 | # 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 this program; if not, write to the Free Software |
---|
19 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
20 | # 02111-1307, USA. |
---|
21 | # |
---|
22 | |
---|
23 | # |
---|
24 | # Set version numbers, see http://apr.apache.org/versioning.html |
---|
25 | # |
---|
26 | # MAJOR - Modify when incompatible changes are made |
---|
27 | m4_define([MAJOR_VERSION], [0]) |
---|
28 | # MINOR - Modify when new functionality is added |
---|
29 | m4_define([MINOR_VERSION], [7]) |
---|
30 | # PATCH - Modify for every released patch |
---|
31 | m4_define([PATCH_VERSION], [0]) |
---|
32 | |
---|
33 | # SVNDIGEST_DEV_BUILD - When rolling a tarball we set this to `false'. In |
---|
34 | # repository value remains `true'. |
---|
35 | m4_define([SVNDIGEST_DEV_BUILD], [true]) |
---|
36 | |
---|
37 | |
---|
38 | ### |
---|
39 | ### DO NOT EDIT BELOW THIS LINE |
---|
40 | ### |
---|
41 | |
---|
42 | # Setting SVNDIGEST_VERSION based upon settings above |
---|
43 | m4_define([SVNDIGEST_VERSION],MAJOR_VERSION.MINOR_VERSION) |
---|
44 | # disregarding patch number if zero |
---|
45 | m4_define([SVNDIGEST_VERSION], m4_if(PATCH_VERSION,[0], SVNDIGEST_VERSION, |
---|
46 | SVNDIGEST_VERSION.PATCH_VERSION)) |
---|
47 | m4_define([SVNDIGEST_VERSION], m4_if(SVNDIGEST_DEV_BUILD, |
---|
48 | [true], [pre]SVNDIGEST_VERSION, |
---|
49 | SVNDIGEST_VERSION)) |
---|
50 | |
---|