Changeset 2729 for trunk/m4/version.m4


Ignore:
Timestamp:
Apr 19, 2012, 10:22:26 AM (11 years ago)
Author:
Peter
Message:

Define version on one line in order to avoid that version change in
stable branch (e.g. 0.8 -> 0.8.1) gets merged into trunk and changes
version in trunk from 0.9pre to 0.9.1pre. Also lift out generic stuff
into new file m4/my_version.m4 so that file can be reused in other
projects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/version.m4

    r2703 r2729  
    2323# Set version numbers, see http://apr.apache.org/versioning.html
    2424#
    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])
    3125
    32 # DEV_BUILD - When rolling a tarball we set this to `false'. In
    33 # repository value remains `true'.
    34 m4_define([DEV_BUILD], [true])
     26m4_include([m4/my_version.m4])
     27
     28MY_VERSION_early([0], [9], [0], [true])
    3529
    3630# Library versioning (current:revision:age)
     
    7569#
    7670m4_define([YAT_LT_VERSION_INFO], [6:0:0])
    77 
    78 ###
    79 ###  DO NOT EDIT BELOW THIS LINE
    80 ###
    81 
    82 # Setting YAT_VERSION__ based upon settings above
    83 m4_define([YAT_VERSION__],MAJOR_VERSION.MINOR_VERSION)
    84 # disregarding patch number if zero
    85 m4_define([YAT_VERSION__], m4_if(PATCH_VERSION,[0], YAT_VERSION__,
    86                                  YAT_VERSION__.PATCH_VERSION))
    87 m4_define([YAT_VERSION__], m4_if(DEV_BUILD,[true], YAT_VERSION__[pre],
    88                                  YAT_VERSION__))
Note: See TracChangeset for help on using the changeset viewer.