Changeset 726 for trunk/lib/Makefile.am


Ignore:
Timestamp:
Dec 9, 2008, 11:14:16 PM (14 years ago)
Author:
Peter Johansson
Message:

refs #362

lifting out copyright year to its own file. The source file
lib/copyright_year.cc is automatically updated when being in svn wc
(i.e. not dist or svn export).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r706 r726  
    2929
    3030noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h ColumnStream.h \
    31   CommandLine.h Commitment.h Configuration.h css.h\
     31  CommandLine.h Commitment.h Configuration.h copyright_year.h css.h\
    3232  Date.h Directory.h Exception.h File.h first_page.h Functor.h \
    3333  Gnuplot.h GnuplotFE.h \
     
    4040libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
    4141  ClassicStats.cc ColumnStream.cc \
    42   CommandLine.cc Commitment.cc Configuration.cc \
     42  CommandLine.cc Commitment.cc Configuration.cc copyright_year.cc \
    4343  css.cc Date.cc Directory.cc File.cc first_page.cc\
    4444  Functor.cc Gnuplot.cc GnuplotFE.cc  HtmlBuf.cc HtmlStream.cc \
     
    6464  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
    6565  revision=`$(SVNVERSION) $(top_srcdir)` ;\
    66   year=`svn info $(top_srcdir)|$(SED) -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
    6766  $(SED) -e 's/sub_2_svn_revision/'$$revision'/g' \
    68   -e 's/sub_2_svn_year/'$$year'/g' $(srcdir)/subversion_info.cc.in >> $@ ;
     67  $(srcdir)/subversion_info.cc.in >> $@ ;
     68
     69# update copyright year automatically (if we build from svn wc)
     70$(srcdir)/copyright_year.cc: copyright_year.cc.tmp
     71  @$(SHELL) $(top_srcdir)/build_support/move-if-change $< $@
     72
     73copyright_year.cc.tmp: FORCE
     74  @year=`svn info $(top_srcdir)|$(SED) -n  's/.*Date: \(.*\)-..-.*/\1/p'`;\
     75  $(SED) -e 's/20[0-9][0-9]/'$$year'/g' $(srcdir)/copyright_year.cc > $@ ;
    6976endif
    7077
Note: See TracChangeset for help on using the changeset viewer.