From 6297d17d83295de1aad5d0a6704ba08fb2d458ca Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 6 Mar 2013 18:23:04 +0000 Subject: [PATCH] Some further bugfixes git-svn-id: https://svn.dealii.org/branches/branch_cmake@28765 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/utilities/build_test | 29 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/deal.II/contrib/utilities/build_test b/deal.II/contrib/utilities/build_test index 51aaee3dfc..0ec189c5fa 100755 --- a/deal.II/contrib/utilities/build_test +++ b/deal.II/contrib/utilities/build_test @@ -3,19 +3,20 @@ # # A build_test for deal.II # -# Usage: Invoke this script in a source directory +# Usage: Invoke this script either in a source directory or with $SOURCEDIR +# set # # The following environment variables may be set: # -# SOURCEDIR - the source directory to use (if not invoked in a source -# directory) -# LOGDIR - directory for the log file -# CONFIGFILE - A cmake configuration file for the build test +# SOURCEDIR - the source directory to use (if not invoked in a source +# directory) +# LOGDIR - directory for the log file +# CONFIGFILE - A cmake configuration file for the build test # -# CMAKE - the cmake executable to use -# SVN - svn info command to use -# TMPDIR - defaults to "/tmp" -# CLEANUP - defaults to "true" +# CMAKE - the cmake executable to use +# SVN - svn info command to use +# TMPDIR - defaults to "/tmp" +# CLEAN_TMPDIR - defaults to "true" # SOURCEDIR=$(CURDIR) @@ -29,9 +30,9 @@ builddir:= $(testdir)/build installdir:= $(testdir)/install LOGDIR=$(PWD) logfile:=$(LOGDIR)/$(date).$(firstword $(notdir $(CONFIGFILE)) automatic).log -CLEANUP=true +CLEAN_TMPDIR=true -PIPEnTRAP:= >>$(logfile) 2>&1 || (if ${CLEANUP}; then rm -rf $(testdir); fi; false) +PIPEnTRAP:= >>$(logfile) 2>&1 || (if ${CLEAN_TMPDIR}; then rm -rf $(testdir); fi; false) .PHONY: main main: @@ -64,7 +65,7 @@ main: @echo "BEGIN RUN EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile) cd $(installdir)/examples && make -f $(SOURCEDIR)/contrib/utilities/build_test run_examples $(PIPEnTRAP) @echo "END RUN EXAMPLES OUTPUT `date -u '+%Y-%m-%d %T'`" | tee -a $(logfile) - rm -rf $(testdir) + if ${CLEAN_TMPDIR}; then rm -rf $(testdir); fi # @@ -73,10 +74,8 @@ main: steps:= $(wildcard step-*) -%/Makefile: +%/%: -cd $(@D) && cmake . >/dev/null 2>&1 - -%/%: %/Makefile cd $(@D) && if [ -f Makefile ]; then make; fi %/OK: %/% -- 2.39.5