Changeset 585


Ignore:
Timestamp:
Apr 11, 2008, 11:37:36 PM (13 years ago)
Author:
Peter Johansson
Message:

replacing SPLIT_VERSION macro with version.m4 taken from yat project

Location:
trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Makefile.am

    r548 r585  
    3838  cd $(DESTDIR)$(bindir) && \
    3939  mv -f svndigest$(EXEEXT) \
    40   svndigest-$(VERSION_MAJOR).$(VERSION_MINOR)$(EXEEXT) && \
    41   $(LN_S) svndigest-$(VERSION_MAJOR).$(VERSION_MINOR)$(EXEEXT) svndigest$(EXEEXT)
     40  svndigest-$(MAJOR_VERSION).$(MINOR_VERSION)$(EXEEXT) && \
     41  $(LN_S) svndigest-$(MAJOR_VERSION).$(MINOR_VERSION)$(EXEEXT) svndigest$(EXEEXT)
     42
     43uninstall-hook:
     44  cd $(DESTDIR)$(bindir) && \
     45  rm -f svndigest-$(MAJOR_VERSION).$(MINOR_VERSION)$(EXEEXT)
    4246
    4347clean-local:
  • trunk/configure.ac

    r584 r585  
    3535
    3636
    37 AC_INIT([svndigest],[pre0.7],[jari@thep.lu.se])
     37m4_include([./build_support/version.m4])
     38AC_INIT([svndigest],[SVNDIGEST_VERSION],[jari@thep.lu.se])
    3839AC_CONFIG_SRCDIR([lib/File.h])
    3940AC_CONFIG_AUX_DIR([autotools])
     
    4142test $prefix = NONE && prefix=/usr/local
    4243
     44AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
     45AC_SUBST([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION])
     46AC_SUBST([SVNDIGEST_PATCH_VERSION], [PATCH_VERSION])
     47
     48AC_DEFINE([DEV_BUILD],[SVNDIGEST_DEV_BUILD],
     49          [true if dev build (version starts with pre)])
     50AC_DEFINE([VERSION_MAJOR], [SVNDIGEST_MAJOR_VERSION],
     51                    [Define to the svndigest major version])
     52AC_DEFINE([VERSION_MINOR], [SVNDIGEST_MINOR_VERSION],
     53                    [Define to the svndigest minor version])
     54AC_DEFINE([VERSION_PATCH], [SVNDIGEST_PATCH_VERSION],
     55                    [Define to the svndigest patch version])
     56
    4357AC_CONFIG_HEADER([config.h])
    4458AM_INIT_AUTOMAKE([std-options check-news])
    45 
    46 sinclude(./build_support/svndigest.m4)
    47 SPLIT_VERSION([VERSION], [$VERSION])
    4859
    4960# seems like these variables are not set with older autoconf(?)
Note: See TracChangeset for help on using the changeset viewer.