]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/mktests.sh: If ever it fails, touch the output files
authorAkim Demaille <akim@epita.fr>
Fri, 13 Oct 2000 16:37:21 +0000 (16:37 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 13 Oct 2000 16:37:21 +0000 (16:37 +0000)
``a` la missing''.

ChangeLog
tests/mktests.sh

index ca8d5bde6344f6b5b7161b61e8f1781f209d6c7f..852f7bee3f17312e4ace5322c4646865455c9b72 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-13  Akim Demaille  <akim@epita.fr>
+
+       * tests/mktests.sh: If ever it fails, touch the output files
+       ``a` la missing''.
+
 2000-10-13  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AC_LINKER_OPTION): Ahem, err, use `$' when
index 523a7ee31e4ea1acf220a937094b85d20642cce8..35f86772222e02b403da17fa9acb8f2428ea0399 100755 (executable)
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 # 02111-1307, USA.
 
+# If we fail, clean up, but touch the output files.  We probably failed
+# because we used some non portable tool, but we just don't care: this
+# shell script is a maintainer tool, and we do expect good tools.
+trap 'echo "'$0': failed.  To proceed run make check." >&2
+      rm -f acdefuns audefuns requires syntax.tm4 update.tm4
+      touch syntax.m4
+      touch update.m4
+      trap 0
+      exit 1' \
+     0 1 2 15
+
+# If ever something goes wrong, fail, so that the trap be launched.
+set -e
+
+# We need arguments.
+test $# != 0
+
+# We need these arguments.
 src="$@"
 
 
@@ -169,4 +187,7 @@ cat $src |
 mv update.tm4 update.m4
 
 rm -f acdefuns audefuns requires
+
+trap 0
+
 exit 0