Changeset 1337
- Timestamp:
- Feb 13, 2011, 12:57:58 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.am
r1315 r1337 27 27 SUBDIRS = yat lib bin man test 28 28 29 EXTRA_DIST = build_support/move-if-change .release_year30 MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change31 29 32 30 lazycheck recheck: all … … 36 34 rm -rf svndigest *~ 37 35 38 .PHONY: .release_year.tmp recheck 39 if HAVE_SVN_WC 40 # update copyright year automatically (if we build from svn wc) 41 $(srcdir)/.release_year: $(builddir)/.release_year.tmp 42 @$(MOVE_IF_CHANGE) $(builddir)/.release_year.tmp $@ 36 .PHONY: recheck 43 37 44 $(builddir)/.release_year.tmp: 45 @if ($(SVNVERSION) $(top_srcdir) | $(GREP) M > /dev/null); then \ 46 date -u "+%Y" > $@; \ 47 else \ 48 cp $(srcdir)/.release_year $@; \ 49 fi 50 endif 38 ## need to declare these variables here so they can be appended below 39 BUILT_SOURCES = 40 CLEANFILES = 41 CONFIG_STATUS_DEPENDENCIES = 42 DISTCLEANFILES = 43 EXTRA_DIST = 51 44 45 include $(top_srcdir)/svn_revision.am 46 include $(top_srcdir)/svn_revision_header.am 47 48 include $(top_srcdir)/svn_release_year.am 52 49 53 50 ############################################################## -
trunk/configure.ac
r1293 r1337 13 13 # Copyright (C) 2006 Jari Häkkinen 14 14 # Copyright (C) 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson 15 # Copyright (C) 2011 Peter Johansson 15 16 # 16 17 # This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 47 48 AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])]) 48 49 49 # propagate RELEASE_YEAR from file .release_year50 RELEASE_YEAR=`cat $srcdir/.release_year`51 AC_SUBST([RELEASE_YEAR])52 AC_DEFINE_UNQUOTED([RELEASE_YEAR], ["$RELEASE_YEAR"],53 [Define year package was last modified])54 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/.release_year'])55 56 50 AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION]) 57 51 AC_SUBST([SVNDIGEST_MINOR_VERSION], [MINOR_VERSION]) … … 173 167 LIBS=$save_LIBS 174 168 AC_SUBST([SVN_LIBS]) 175 176 177 # check if svnversion is installed178 AC_PATH_PROG([SVNVERSION], [svnversion], [no])179 169 180 170 # PLplot API checks … … 267 257 AC_SUBST(PLPLOT_LIBS) 268 258 269 # checking if we build in a subversion WC270 AS_IF([test -d $srcdir/.svn], [wc_found="yes"], [wc_found="no"])271 AM_CONDITIONAL([HAVE_SVN_WC], [test "$wc_found" = "yes"])272 AC_SUBST([wc_found])273 274 259 # checking if we have test repo 275 260 test_repo_filename=$srcdir/test/repo; … … 286 271 AC_CONFIG_FILES([test/svn_update.sh], [chmod +x test/svn_update.sh]) 287 272 288 dnl maintainer make ru kes from yat project273 dnl maintainer make rules from yat project 289 274 YAT_SVN_RELEASE 275 YAT_SVN_REVISION 276 YAT_REVISION_HEADER 277 YAT_SVN_RELEASE_YEAR 278 290 279 291 280 # Restore FLAGS … … 311 300 all_reqs_ok="true" 312 301 313 if (test "$wc_found" = "yes"); then 302 AS_VAR_IF([have_svn_wc], [yes], [ 314 303 AC_MSG_CHECKING([help2man]) 315 304 # redirecting potential error msg to log file … … 325 314 [ ], 79)) 326 315 ]) 327 # svnversion is required when building from svn wc328 if (test "x$SVNVERSION" = "xno"); then329 all_reqs_ok="false";330 AC_MSG_WARN([dnl331 Cannot find svnversion, which is required when building from a332 subversion working copy. Please install svnversion and make sure it is333 in your search path.]);334 fi335 316 if (test "$test_repo_found" = "no"); then 336 317 all_reqs_ok="false"; … … 340 321 update in top directory.]); 341 322 fi 342 fi 323 ]) 343 324 344 325 # Non-existing APR is fatal -- sub-sequent compilation will fail. -
trunk/lib/Makefile.am
r1324 r1337 22 22 # along with svndigest. If not, see <http://www.gnu.org/licenses/>. 23 23 24 MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change25 SVN_REVISION = `$(SVNVERSION) $(top_srcdir)`26 27 24 AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS) 28 25 AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS) … … 39 36 main_utility.h Node.h NodeCounter.h NodePrinter.h NodeVisitor.h \ 40 37 OptionVersion.h rmdirhier.h \ 41 Stats.h StatsCollection.h StatsPlotter.h subversion_ info.h \38 Stats.h StatsCollection.h StatsPlotter.h subversion_revision.h \ 42 39 SvndigestVisitor.h SVN.h SVNblame.h \ 43 40 SVNdiff.h SVNinfo.h SVNlog.h SVNproperty.h TinyStats.h \ … … 60 57 html_utility.cc LineTypeParser.cc main_utility.cc Node.cc \ 61 58 NodeCounter.cc OptionVersion.cc \ 62 rmdirhier.cc Stats.cc StatsCollection.cc SVN.cc \59 rmdirhier.cc Stats.cc StatsCollection.cc subversion_revision.cc SVN.cc \ 63 60 SVNblame.cc SVNdiff.cc SVNinfo.cc \ 64 61 SVNlog.cc SVNproperty.cc TinyStats.cc \ 65 62 Trac.cc utility.cc Vector.cc 66 67 nodist_libsvndigest_core_a_SOURCES = subversion_info.cc68 69 70 63 71 64 clean-local: … … 74 67 all-local: 75 68 76 EXTRA_DIST = subversion_info.cc.in .revision77 CLEANFILES = subversion_info.cc78 69 79 if HAVE_SVN_WC80 $(srcdir)/.revision: FORCE81 @$(SVNVERSION) $(top_srcdir) > $@-t && $(MOVE_IF_CHANGE) $@-t $@82 else83 ## this is needed in 'svn export' build84 $(srcdir)/.revision:85 echo "" > $@86 endif87 88 subversion_info.cc: $(srcdir)/subversion_info.cc.in $(srcdir)/.revision89 @rm -f $@-t $@ && \90 { revision=`cat $(srcdir)/.revision`; \91 echo '// DO NOT EDIT! GENERATED AUTOMATICALLY!' && \92 $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \93 < $(srcdir)/subversion_info.cc.in; \94 } > $@-t && mv $@-t $@95 96 FORCE: -
trunk/lib/OptionVersion.cc
r1211 r1337 23 23 24 24 #include "OptionVersion.h" 25 #include "subversion_ info.h"25 #include "subversion_revision.h" 26 26 #include "utility.h" 27 27 -
trunk/lib/html_utility.cc
r1099 r1337 29 29 #include "Date.h" 30 30 #include "HtmlStream.h" 31 #include "subversion_ info.h"31 #include "subversion_revision.h" 32 32 33 33 #include <cassert> -
trunk/lib/subversion_revision.cc
r1335 r1337 20 20 */ 21 21 22 #include "subversion_info.h" 22 #include "subversion_revision.h" 23 #include "svn_revision.h" 23 24 #include <string> 24 25 … … 40 41 std::string svn_revision(void) 41 42 { 42 return "sub_2_svn_revision";43 return SVN_REVISION; 43 44 } 44 45 -
trunk/m4/yat_add_flag.m4
r1315 r1337 1 ## $Id: yat_add_flag.m4 2 107 2009-11-07 15:53:27Z peter $1 ## $Id: yat_add_flag.m4 2202 2010-02-21 18:39:13Z peter $ 2 2 3 3 # SYNOPSIS … … 17 17 # LAST MODIFICATION 18 18 # 19 # $Date: 20 09-11-07 10:53:27 -0500 (Sat, 07 Nov 2009) $19 # $Date: 2010-02-21 13:39:13 -0500 (Sun, 21 Feb 2010) $ 20 20 # 21 21 # COPYLEFT -
trunk/m4/yat_svn_release.m4
r1317 r1337 1 ## $Id: yat_svn_release.m4 2 350 2010-11-21 15:35:23Z peter $1 ## $Id: yat_svn_release.m4 2425 2011-02-12 23:54:53Z peter $ 2 2 3 # serial 4 (yat 0.7)3 # serial 5 (yat 0.8) 4 4 5 5 # SYNOPSIS … … 13 13 # include $(srcdir)/maintainer.am 14 14 # 15 # to your top Makefile.am. 15 # in your top Makefile.am. The main targets are `maintainer-check' 16 # and `release'. maintainer-check 'svn exports' from the local wc 17 # and try to build from this pristine directory via './boostrap; 18 # ./configure $(DISTCHECK_CONFIGURE_FLAGS); make'. You can add 19 # additional target that should be run within maintainer-check by 20 # defining variable `MAINTAINER_CHECK_LOCAL'. The target `release' 21 # runs `maintainer-check' in addition to some more sanity checks 22 # such as checking that wc is not modified compared with repository 23 # and finishes by running distcheck. 16 24 # 17 25 # COPYLEFT 18 26 m4_define([yat_svn_release_copyright], [ 19 27 # 20 # Copyright (C) 2009, 2010 Peter Johansson28 # Copyright (C) 2009, 2010, 2011 Peter Johansson 21 29 # 22 30 # This file is part of the yat library, http://dev.thep.lu.se/yat -
trunk/man/Makefile.am
r1298 r1337 34 34 # We depend on configure to catch VERSION changes, Makefile.in to 35 35 # catch rules changes, svndigest.x is an obvious dependency, and 36 # subversion_info.ccchanges for every revsion.36 # lib/.revision changes for every revsion. 37 37 man_deps=$(top_srcdir)/configure $(srcdir)/Makefile.in \ 38 $(srcdir)/svndigest.x $(top_srcdir)/lib/ subversion_info.cc38 $(srcdir)/svndigest.x $(top_srcdir)/lib/.revision 39 39 40 40 $(srcdir)/svndigest.1: $(man_deps) -
trunk/test/init.sh.in
r1293 r1337 48 48 shell=@SHELL@ 49 49 test_repo_found=@test_repo_found@ 50 wc_found="@wc_found@"50 have_svn_wc="@have_svn_wc@" 51 51 52 52 test -z "$SVNDIGEST" && SVNDIGEST="${abs_top_builddir}/bin/svndigest"; … … 81 81 fi;; 82 82 wc) 83 if test x$ wc_found= xno; then83 if test x$have_svn_wc = xno; then 84 84 exit_skip "not subversion working copy"; 85 85 fi;;
Note: See TracChangeset
for help on using the changeset viewer.