]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/mktests.sh: Don't output banners for empty test files.
authorAkim Demaille <akim@epita.fr>
Thu, 13 Sep 2001 06:56:44 +0000 (06:56 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 13 Sep 2001 06:56:44 +0000 (06:56 +0000)
ChangeLog
tests/mktests.sh

index 31226b8c64e73f5f3558a56ab52eaeeb9871c379..8e0ec54418c45ec21004914732a2144d82166a91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-13  Akim Demaille  <akim@epita.fr>
+
+       * tests/mktests.sh: Don't output banners for empty test files.
+
 2001-09-13  Akim Demaille  <akim@epita.fr>
 
        Test suites can be run independently of configure.
index b1f1ce269d1ee81c65d14783d7a0b3680ed203c2..f8064ab2195a7ce6251a6585d3a31678ebbd9739 100755 (executable)
@@ -220,11 +220,19 @@ MK_EOF
   } >ac$base.tat
 
   # In one atomic step so that if something above fails, the trap
-  # preserves the old version of the file.
-  mv ac$base.tat ac$base.at
+  # preserves the old version of the file.  If there is nothing to
+  # check, output /rien du tout/[1].
+  if fgrep AT_CHECK ac$base.tat >/dev/null 2>&1; then
+    mv ac$base.tat ac$base.at
+  else
+    rm -f ac$base.tat ac$base.at
+    touch ac$base.at
+  fi
 done
 
 rm -f acdefuns audefuns requires
 
 trap 0
 exit 0
+
+# [1] En franc,ais dans le texte.