Changeset 837 for trunk/lib


Ignore:
Timestamp:
Nov 10, 2009, 12:06:37 AM (12 years ago)
Author:
Peter Johansson
Message:

modified copyright year calculation; rather than taking from 'svn log'
the year is taken from 'date', but only if the source is modified,
i.e., svnversion output contains an M. This has the change that the
year will be updated as soon as there is a source modification after
new year, and the copyright update will occur in the first commit
rather than the second (this commit should be categorized under
details we should not really care about ;) )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r836 r837  
    2525
    2626MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change
     27SVN_REVISION = `$(SVNVERSION) $(top_srcdir)`
    2728
    2829SUBDIRS = yat .
     
    6768subversion_info.cc.tmp: FORCE
    6869  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
    69   revision=`$(SVNVERSION) $(top_srcdir)` ;\
     70  revision=$(SVN_REVISION);\
    7071  $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \
    7172  $(srcdir)/subversion_info.cc.in >> $@ ;
     
    7677
    7778copyright_year.cc.tmp: FORCE
    78   @year=`svn info $(top_srcdir)|$(SED) -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
    79   $(SED) -e 's/"20[0-9][0-9]"/'\"$$year\"'/g' $(srcdir)/copyright_year.cc > $@ ;
     79  @(echo $(SVN_REVISION) | $(GREP) M) && \
     80  $(SED) -e 's/"20[0-9][0-9]"/'\"`date -u "+%Y"`\"'/g' $(srcdir)/copyright_year.cc > $@ ;
    8081
    8182else
Note: See TracChangeset for help on using the changeset viewer.