- Timestamp:
- Mar 13, 2008, 10:55:15 PM (16 years ago)
- Location:
- trunk/lib
- Files:
-
- 1 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Makefile.am
r564 r569 5 5 # Copyright (C) 2005 Jari Häkkinen 6 6 # Copyright (C) 2006 Jari Häkkinen, Peter Johansson 7 # Copyright (C) 2007 Peter Johansson7 # Copyright (C) 2007 2008 Peter Johansson 8 8 # 9 9 # This file is part of svndigest, http://trac.thep.lu.se/svndigest … … 31 31 HtmlStream.h html_utility.h LineTypeParser.h \ 32 32 LogIterator.h Node.h rmdirhier.h \ 33 Stats.h StatsCollection.h SVN.h SVNblame.h \33 Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h \ 34 34 SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h 35 35 … … 40 40 Functor.cc Gnuplot.cc GnuplotFE.cc HtmlStream.cc \ 41 41 html_utility.cc LineTypeParser.cc LogIterator.cc Node.cc \ 42 rmdirhier.cc Stats.cc StatsCollection.cc SVN.cc \42 rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \ 43 43 SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc 44 44 45 BUILT_SOURCES=subversion_info.h46 45 47 EXTRA_DIST=subversion_info.h 46 48 47 49 48 clean-local: … … 53 52 54 53 if HAVE_SVN_WC 55 subversion_info.h: subversion_info.h.tmp 56 @if [ ! -f $@ ]; then touch $@; fi; \ 57 diff $@ subversion_info.h.tmp > subversion_info.h.diff; \ 58 if test -s "subversion_info.h.diff"; then \ 59 mv subversion_info.h.tmp subversion_info.h; \ 60 echo creating subversion_info.h; \ 61 fi; \ 62 rm -f subversion_info.h.tmp subversion_info.h.diff ; 54 subversion_info.cc: subversion_info.cc.tmp 55 @$(SHELL) @top_srcdir@/build_support/move-if-change subversion_info.cc.tmp \ 56 subversion_info.cc 63 57 64 65 subversion_info.h.tmp: FORCE 66 @echo '// subversion_info.h generated from subversion_info.h.in.' > $@ ;\ 58 subversion_info.cc.tmp: FORCE 59 @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\ 67 60 revision=`$(SVNVERSION) $(top_srcdir)` ;\ 68 61 year=`svn info $(top_srcdir)|$(SED) -n 's/.*Date: \(.*\)-..-.*/\1/p'`;\ 69 62 $(SED) -e 's/sub_2_svn_revision/'$$revision'/g' \ 70 -e 's/sub_2_svn_year/'$$year'/g' subversion_info. h.in >> $@ ;63 -e 's/sub_2_svn_year/'$$year'/g' subversion_info.cc.in >> $@ ; 71 64 endif 72 65 -
trunk/lib/subversion_info.h
r568 r569 1 // $Id$2 3 1 #ifndef _theplu_svndigest_subversion_info_ 4 2 #define _theplu_svndigest_subversion_info_ 3 4 // $Id$ 5 5 6 6 /* … … 30 30 namespace svndigest{ 31 31 32 inline std::string svn_revision(void) 33 { return "sub_2_svn_revision"; } 32 std::string svn_revision(void); 34 33 35 inline std::string svn_year(void) 36 { return "sub_2_svn_year"; } 34 std::string svn_year(void); 37 35 38 36 }} // end of namespace svndigest and namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.