- Timestamp:
- Dec 9, 2008, 11:14:16 PM (14 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Makefile.am
r706 r726 29 29 30 30 noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h ColumnStream.h \ 31 CommandLine.h Commitment.h Configuration.h c ss.h\31 CommandLine.h Commitment.h Configuration.h copyright_year.h css.h\ 32 32 Date.h Directory.h Exception.h File.h first_page.h Functor.h \ 33 33 Gnuplot.h GnuplotFE.h \ … … 40 40 libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \ 41 41 ClassicStats.cc ColumnStream.cc \ 42 CommandLine.cc Commitment.cc Configuration.cc \42 CommandLine.cc Commitment.cc Configuration.cc copyright_year.cc \ 43 43 css.cc Date.cc Directory.cc File.cc first_page.cc\ 44 44 Functor.cc Gnuplot.cc GnuplotFE.cc HtmlBuf.cc HtmlStream.cc \ … … 64 64 @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\ 65 65 revision=`$(SVNVERSION) $(top_srcdir)` ;\ 66 year=`svn info $(top_srcdir)|$(SED) -n 's/.*Date: \(.*\)-..-.*/\1/p'`;\67 66 $(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 73 copyright_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 > $@ ; 69 76 endif 70 77 -
trunk/lib/OptionVersion.cc
r724 r726 22 22 #include <config.h> 23 23 24 #include "copyright_year.h" 24 25 #include "OptionVersion.h" 25 26 #include "ColumnStream.h" -
trunk/lib/copyright_year.cc
r723 r726 20 20 */ 21 21 22 #include " subversion_info.h"22 #include "copyright_year.h" 23 23 #include <string> 24 24 … … 26 26 namespace svndigest{ 27 27 28 std::string compilation_date(void)29 {30 return __DATE__;31 }32 33 34 std::string compilation_time(void)35 {36 return __TIME__;37 }38 39 40 std::string svn_revision(void)41 {42 return "sub_2_svn_revision";43 }44 45 46 28 std::string svn_year(void) 47 29 { 48 return " sub_2_svn_year";30 return "2008"; 49 31 } 50 32 -
trunk/lib/copyright_year.h
r723 r726 1 #ifndef _theplu_svndigest_ subversion_info_2 #define _theplu_svndigest_ subversion_info_1 #ifndef _theplu_svndigest_copyright_year_ 2 #define _theplu_svndigest_copyright_year_ 3 3 4 4 // $Id$ … … 28 28 namespace svndigest{ 29 29 30 // These functions are (mis)placed here to reflect compilation time 31 // of subversion_info.cc. Previously, __TIME__ macro was placed in 32 // `bin/Parameter.cc' and since the Parameter is almost independent 33 // of other parts of the package, that compilation time does not 34 // very accurately reflect the building time of the svndigest 35 // binary. subversion_info.cc is at least modified when updating 36 // against repository and therefore these functions will return a 37 // time no earlier than last `svn update' 38 std::string compilation_date(void); 39 std::string compilation_time(void); 40 41 std::string svn_revision(void); 42 30 /** 31 \return year svndigest was last changed 32 */ 43 33 std::string svn_year(void); 44 34 -
trunk/lib/subversion_info.cc.in
r693 r726 43 43 } 44 44 45 46 std::string svn_year(void)47 {48 return "sub_2_svn_year";49 }50 51 45 }} // end of namespace svndigest and namespace theplu -
trunk/lib/subversion_info.h
r693 r726 41 41 std::string svn_revision(void); 42 42 43 std::string svn_year(void);44 45 43 }} // end of namespace svndigest and namespace theplu 46 44
Note: See TracChangeset
for help on using the changeset viewer.