Changeset 2114


Ignore:
Timestamp:
Feb 27, 2011 1:49:48 PM (9 years ago)
Author:
stefan
Message:

add extra defines for major, minor, and release version number in numeric form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r2111 r2114  
    8181coin_projectdir=yes
    8282
    83 # Set the project's version number
     83# Set the project's version numbers
    8484m4_ifvaln([$1],[
    8585  AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION), ["$PACKAGE_VERSION"],[Version number of project])
     86 
     87  [coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`]
     88  [coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`]
     89  [coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`]
     90  if test "x$coin_majorver" = x ; then coin_majorver=-1 ; fi
     91  if test "x$coin_minorver" = x ; then coin_minorver=-1 ; fi
     92  if test "x$coin_releasever" = x ; then coin_releasever=-1 ; fi
     93  AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION_MAJOR),   [$coin_majorver],   [Major Version number of project])
     94  AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION_MINOR),   [$coin_minorver],   [Minor Version number of project])
     95  AC_DEFINE_UNQUOTED(m4_toupper($1_VERSION_RELEASE), [$coin_releasever], [Release Version number of project])
    8696
    8797  # We use the following variable to have a string with the upper case
Note: See TracChangeset for help on using the changeset viewer.