Changeset 909 for trunk/configure.ac


Ignore:
Timestamp:
Nov 29, 2009, 11:43:01 PM (14 years ago)
Author:
Peter Johansson
Message:

Set the copyright year automatically in svndigest-copy-cache. The year
is stored in a file .release_year and AC_DEFINEd and AC_SUBSTed, so it
can be used in both svndigest-copy-cache and svndigest (via
config.h). No need files lib/copyright_year anymore. The file
.release_year is updated same fashion as copyright_year.cc was
previously. A difference is that a change in .release will cause
configure to be rerun, which is expensive but I think we can live with
the cost since it only happens once a year.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r907 r909  
    4545                     [Define to home page for this package])
    4646           AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])])
     47
     48# propagate RELEASE_YEAR from file .release_year
     49RELEASE_YEAR=`cat $srcdir/.release_year`
     50AC_SUBST([RELEASE_YEAR])
     51AC_DEFINE_UNQUOTED([RELEASE_YEAR], ["$RELEASE_YEAR"],
     52                   [Define year package was last modified])
     53AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/.release_year'])
    4754
    4855AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
Note: See TracChangeset for help on using the changeset viewer.