]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Get revision number from an installed file.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Mar 2013 11:43:38 +0000 (11:43 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Mar 2013 11:43:38 +0000 (11:43 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28750 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index ec4ba334786af26493f051bab5f4cb04e1b5c339..a091cf2768ba4159e8734871901cedbdde2b7e39 100644 (file)
@@ -1,7 +1,7 @@
 ######################################################################
 # Makefile.rules,v 1.11 2001/04/24 13:18:09 wolf Exp
 #
-# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, the deal.II authors
+# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, the deal.II authors
 #
 # Common make rules for test files. To be included by the Makefiles
 # in the subdirectories.
@@ -26,7 +26,7 @@ MAIL=mail
 #this lets you overwrite the diff tool for comparisons.
 #recommended environment setting:
 #export DEALII_DIFF="numdiff -a 1e-6 -q"
-DEALII_DIFF?=diff 
+DEALII_DIFF?=diff
 
 PLATFORM = $(TARGET)+$(GXX-VERSION:intel_%=%)
 PLATFORM-HIERARCHY = $(shell $(PERL) ../hierarchy.pl $(PLATFORM))
@@ -172,7 +172,9 @@ default: run-tests
 ############################################################
 report:
        @-$(MAKE) -k run-tests
-       @-svn info $D | grep '^Revision'
+       @if test -f $D/common/Version.svn ; then \
+               echo "Revision: `cat $D/common/Version.svn`" ; \
+        fi
        @echo 'Date: ' `date -u +"%Y %j  %F  %U-%w"`
        @echo 'Id: ' $(ID)
        @for test in $(sort $(tests)) ; do \
@@ -318,4 +320,3 @@ Makefile.tests: Makefile $(shell echo *.cc)
 
 
 .PHONY: report show-tests clean distclean summary %/ref
-

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.