From: Wolfgang Bangerth Date: Sun, 26 May 2013 17:30:28 +0000 (+0000) Subject: Allow the mail program to be overwritten by the environment. X-Git-Tag: v8.0.0~420 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efdbe1e216fbb3f7f6ab2a038c19f2d0cce5c435;p=dealii.git Allow the mail program to be overwritten by the environment. git-svn-id: https://svn.dealii.org/trunk@29617 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/Makefile.rules b/tests/Makefile.rules index 10824a7bc5..cf75eee208 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -18,10 +18,11 @@ verbose = off # # MAIL=mymailprog # -# on the command line to use a different mail agent or to tunnel through ssh. -# The mail program takes a single argument, which is the mail address for tests -# The contents of the mail will be provided on STDIN -MAIL = mail +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail # this lets you overwrite the diff tool for comparisons. # recommended environment setting: diff --git a/tests/all-headers/Makefile b/tests/all-headers/Makefile index c8069250bb..184e57dca0 100644 --- a/tests/all-headers/Makefile +++ b/tests/all-headers/Makefile @@ -9,6 +9,16 @@ include ../Makefile.paths include $D/common/Make.global_options +# The mail program. Override this by something like +# +# MAIL=mymailprog +# +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail + ############################################################ # First how to create executables, including all necessary @@ -82,7 +92,7 @@ report: report+mail: all @$(MAKE) report | tee testresults - @cat testresults | mail regression-tests@dealii.org + @cat testresults | $(MAIL) regression-tests@dealii.org @rm testresults diff --git a/tests/mesh_converter/Makefile b/tests/mesh_converter/Makefile index ee35ea8cab..00a65572bd 100644 --- a/tests/mesh_converter/Makefile +++ b/tests/mesh_converter/Makefile @@ -9,6 +9,16 @@ include ../Makefile.paths include $D/common/Make.global_options +# The mail program. Override this by something like +# +# MAIL=mymailprog +# +# as part of the 'make' arguments or in the environment to use a different +# mail agent or to tunnel through ssh. The mail program takes a single +# argument, which is the mail address for tests The contents of the mail will +# be provided on STDIN +MAIL ?= mail + ############################################################ # First how to create executables, including all necessary @@ -76,7 +86,7 @@ report: report+mail: all @$(MAKE) report | tee testresults - @cat testresults | mail bangerth@brazos.tamu.edu + @cat testresults | $(MAIL) bangerth@brazos.tamu.edu @rm testresults