Changeset 1475


Ignore:
Timestamp:
Apr 22, 2012, 2:41:57 AM (9 years ago)
Author:
Peter Johansson
Message:

using generic my_version.m4 (from yat)

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1417 r1475  
    3333
    3434m4_include([m4/version.m4])
    35 AC_INIT([svndigest], m4_defn([SVNDIGEST_VERSION]),
     35AC_INIT([svndigest], m4_defn([my_VERSION]),
    3636        [svndigest-users@lists.sourceforge.net],,
    3737        [http://dev.thep.lu.se/svndigest])
     
    4848           AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])])
    4949
    50 AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
    51 AC_SUBST([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION])
    52 AC_SUBST([SVNDIGEST_PATCH_VERSION], [PATCH_VERSION])
    53 
    54 AC_DEFINE([DEV_BUILD],[SVNDIGEST_DEV_BUILD],
    55           [true if dev build (version ends with pre)])
    56 AC_DEFINE([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION],
    57                     [Define to the svndigest major version])
    58 AC_DEFINE([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION],
    59                     [Define to the svndigest minor version])
    60 AC_DEFINE([SVNDIGEST_PATCH_VERSION], [PATCH_VERSION],
    61                     [Define to the svndigest patch version])
    62 
     50MY_VERSION
    6351AC_CONFIG_HEADERS([config.h])
    6452AM_INIT_AUTOMAKE([1.11 color-tests std-options parallel-tests silent-rules])
  • trunk/m4/version.m4

    r1472 r1475  
    2020#
    2121
     22m4_include([m4/my_version.m4])
     23
    2224#
    2325# Set version numbers, see http://apr.apache.org/versioning.html
    2426#
    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], [10])
    29 # PATCH - Modify for every released patch
    30 m4_define([PATCH_VERSION], [0])
    3127
    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],
    48                                      SVNDIGEST_VERSION[pre],
    49                                      SVNDIGEST_VERSION))
    50 
     28# edit this line before release
     29MY_VERSION_early([0], [10], [0], [true])
Note: See TracChangeset for help on using the changeset viewer.