]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow the mail program to be overwritten by the environment.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 26 May 2013 17:30:28 +0000 (17:30 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 26 May 2013 17:30:28 +0000 (17:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@29617 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules
tests/all-headers/Makefile
tests/mesh_converter/Makefile

index 10824a7bc56861e18ce646b098492dd3bc570a2d..cf75eee2081137ba3f244d5fb582c772e05bf34e 100644 (file)
@@ -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:
index c8069250bb0d4cce5087faf0ffdea0a3c7805188..184e57dca04f2b9d3ba223ebac4e4efa976cc0fd 100644 (file)
@@ -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
 
 
index ee35ea8cabdd227e40f31adda1f032beced780a6..00a65572bd04908425b67c38b9454087651dfd2b 100644 (file)
@@ -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
 
 

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.