Changeset 2540


Ignore:
Timestamp:
Aug 1, 2011, 4:39:48 AM (10 years ago)
Author:
Peter
Message:

test for YAT_SVN_RELEASE_YEAR. refs #668

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_am_macros.m4

    r2539 r2540  
    11## $Id$
    22
    3 # serial 6 (yat 0.8)
     3# serial 7 (yat 0.8)
    44
    55m4_define([yat_am_macros_copyright], [
     
    114114dnl end AX_AC_APPEND_TO_FILE
    115115m4_popdef([YAT_AM_FILE])
    116 ]) # YAT_SVN_RELEASE
     116]) # YAT_SVN_REVISION
    117117
    118118
     
    166166
    167167
    168 # YAT_SVN_RELEASE_YEAR([AM_FILE = svn_releas_year.am], [OUTPUT = .release_year])
     168# YAT_SVN_RELEASE_YEAR([AM_FILE = svn_release_year.am],[OUTPUT = .release_year])
    169169#
    170170# Create file, AM_FILE, with make rules for creation of a file,
     
    186186AC_REQUIRE([YAT_PROG_MOVE_IF_CHANGE])
    187187# .release_year is generated during make so in order to avoid bootstrap problem
    188 test -r $srcdir/.release_year || date -u "+%Y" > $srcdir/.release_year
     188test -r $srcdir/$2 || date -u "+%Y" > $srcdir/$2
    189189# propagate RELEASE_YEAR from file .release_year
    190 RELEASE_YEAR=`cat $srcdir/.release_year`
     190RELEASE_YEAR=`cat "$srcdir/$2"`
    191191AC_SUBST([RELEASE_YEAR])
    192192AC_DEFINE_UNQUOTED([RELEASE_YEAR], ["$RELEASE_YEAR"],
    193193                   [Define year package was last modified])
    194194dnl generate make rule for .release_year
    195 _YAT_AM_TOP([svn_release_year.am])
    196 _YAT_AC_APPEND_TO_FILE([svn_release_year.am],
    197 EXTRA_DIST += $(srcdir)/.release_year
    198 CONFIG_STATUS_DEPENDENCIES += $(srcdir)/.release_year
     195_YAT_AM_TOP([$1])
     196_YAT_AC_APPEND_TO_FILE([$1],
     197EXTRA_DIST += $(srcdir)/$2
     198CONFIG_STATUS_DEPENDENCIES += $(srcdir)/$2
    199199RELEASE_YEAR_FORCE:
    200200if HAVE_SVN_WC
    201 $(srcdir)/.release_year: RELEASE_YEAR_FORCE
     201$(srcdir)/$2: RELEASE_YEAR_FORCE
    202202  @if $(SVNVERSION) $(srcdir) | grep 'M' > /dev/null; then \
    203203     date -u "+%%Y" > [$][@]-t \
  • trunk/test/Makefile.am

    r2539 r2540  
    8484yat_prog_move_if_change_test.sh \
    8585yat_revision_header_test.sh \
     86yat_svn_release_year_test.sh \
    8687yat_svn_revision_test.sh
    8788
     
    132133  common_defs.sh
    133134yat_revision_header_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh
     135yat_svn_release_year_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh
    134136yat_svn_revision_test.log: $(top_srcdir)/m4/yat_am_macros.m4 common_defs.sh
    135137
Note: See TracChangeset for help on using the changeset viewer.