]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Finish build_test
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Mar 2013 10:26:09 +0000 (10:26 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Mar 2013 10:26:09 +0000 (10:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@28812 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/utilities/build_test

index e8f89310bed5a9d7c03a0b9e76514d1db96071e9..5d9e9311a3a9174fbf891e4b7daaa483ce71397f 100755 (executable)
 #   CLEAN_TMPDIR - defaults to "true"
 #
 
+#
+# Specify default values:
+#
 SOURCEDIR=$(CURDIR)
+LOGDIR=$(PWD)
 TMPDIR=/tmp
 CMAKE=cmake
 SVN=svn info
+
+branch:=$(shell $(SVN) $(SOURCEDIR) | perl -ne 'print "$$1" if m/svn\.dealii\.org\/(.+)\/deal.II/;')
+revision:=$(shell $(SVN) $(SOURCEDIR) | perl -ne 'print "$$_" if s/Last Changed Rev: //;')
+
 date:= $(shell date +%s)
 random:=$(shell echo "$$RANDOM")
 testdir:= "$(TMPDIR)"/deal-build-test.$(date)-$(random)
 builddir:= $(testdir)/build
 installdir:= $(testdir)/install
-LOGDIR=$(PWD)
-LOGFILE=$(LOGDIR)/$(firstword $(notdir $(CONFIGFILE)) automatic).$(date).log
+LOGFILE=$(LOGDIR)/$(firstword $(branch) unknown_branch).$(firstword $(notdir $(CONFIGFILE)) no_configuration).$(date).log
 CLEAN_TMPDIR=true
 
 PIPEnTRAP:= >>$(LOGFILE) 2>&1 || (if ${CLEAN_TMPDIR}; then rm -rf $(testdir); fi; false)
@@ -43,7 +50,8 @@ main:
        mkdir -p $(installdir)
        @echo "AUTOMATED DEAL.II BUILD TEST" | tee $(LOGFILE)
        @echo "BEGIN HEADER `date -u '+%Y-%m-%d %T'`" | tee -a $(LOGFILE)
-       @$(SVN) $(SOURCEDIR) | perl -ne 'print "dealii-feature: revision=$$_" if s/Last Changed Rev: //; print "dealii-feature: branch=$$1\n" if m/svn\.dealii\.org\/(.+)\/deal.II/;' | tee -a $(LOGFILE)
+       @echo "dealii-feature: branch=$(branch)" | tee -a $(LOGFILE)
+       @echo "dealii-feature: revision=$(revision)" | tee -a $(LOGFILE)
        @echo "dealii-feature: user=$(USER)" | tee -a $(LOGFILE)
        @echo "dealii-feature: host=`hostname`" | tee -a $(LOGFILE)
        @echo "dealii-feature: configuration=`basename \"$(CONFIGFILE)\"`" | tee -a $(LOGFILE)

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.