]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atgeneral.m4 (AT_INIT): Avoid foo="`bar`", foo=`bar` is
authorAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 12:42:20 +0000 (12:42 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 12:42:20 +0000 (12:42 +0000)
enough.
Use grep to check the presence of a string in a stream.
* m4/atconfig.m4: Quote.

ChangeLog
lib/autotest/general.m4
m4/atconfig.m4
tests/atgeneral.m4

index 9216ab45f2d562b2a3b2857db46ceea339d4ed1c..630dbda453f4d5390d2a93dd6669f30f3330fb0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-10-18  Akim Demaille  <akim@epita.fr>
+
+       * tests/atgeneral.m4 (AT_INIT): Avoid foo="`bar`", foo=`bar` is
+       enough.
+       Use grep to check the presence of a string in a stream.
+       * m4/atconfig.m4: Quote.
+
 2000-10-18  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_SHELL_DIRNAME): Quote the `sed' fall back.
index 12e45d906d68eb28e9718539374b4feabe5fb0df..941b7e8046364793b788013c9a0a84b0cfc8be67 100644 (file)
@@ -171,7 +171,7 @@ fi
 # over files, the full test suite cleans up both before and after test groups.
 # Snippet )4
 
-if test -n "`$1 --version | sed -n s/$at_package.*$at_version/OK/p`"; then
+if $1 --version | grep "$at_package.*$at_version" >/dev/null; then
   at_banner="Testing suite for $at_package, version $at_version"
   at_dashes=`echo $at_banner | sed s/./=/g`
   echo "$at_dashes"
@@ -213,9 +213,9 @@ else
       test -z "$at_silent" && echo 'at_verbose=:'
       sed -n "/^[#] Snippet (4/,/^[#] Snippet )4/p" $[0]
       sed -n "/^[#] Snippet (c$at_group(/,/^[#] Snippet )c$at_group)/p" $[0]
-      at_desc="`sed -n \
+      at_desc=`sed -n \
         '/^[#] Snippet (d'$at_group'(/,/^[#] Snippet )d'$at_group')/p' $[0] \
-        | sed -n '2s/^[#] //p'`"
+        | sed -n '2s/^[#] //p'`
       echo 'if $at_verbose; then'
       echo '  at_banner="$[0]: '$at_desc'"'
       echo '  at_dashes=`echo $at_banner | sed s/./=/g`'
index 91d008a7ed613f32996f4b74955598db87d13d28..839e548918097e79ab14c1a0ffb685913e3dfe40 100644 (file)
@@ -1,11 +1,13 @@
-## ----------------------##
+## ----------------------##                              -*- Autoconf -*-
 ## Prepare for testing.  ##
 ## ----------------------##
 
+#serial 2
+
 # Single argument says where are built sources to test, relative to the
 # built test directory.  Maybe omitted if the same (flat distribution).
 
-AC_DEFUN(AT_CONFIG,
-[AT_TESTPATH=ifelse($1, , ., $1)
+AC_DEFUN([AT_CONFIG],
+[AT_TESTPATH=ifelse([$1], [], [.], [$1])
 AC_SUBST(AT_TESTPATH)
 ])
index 12e45d906d68eb28e9718539374b4feabe5fb0df..941b7e8046364793b788013c9a0a84b0cfc8be67 100644 (file)
@@ -171,7 +171,7 @@ fi
 # over files, the full test suite cleans up both before and after test groups.
 # Snippet )4
 
-if test -n "`$1 --version | sed -n s/$at_package.*$at_version/OK/p`"; then
+if $1 --version | grep "$at_package.*$at_version" >/dev/null; then
   at_banner="Testing suite for $at_package, version $at_version"
   at_dashes=`echo $at_banner | sed s/./=/g`
   echo "$at_dashes"
@@ -213,9 +213,9 @@ else
       test -z "$at_silent" && echo 'at_verbose=:'
       sed -n "/^[#] Snippet (4/,/^[#] Snippet )4/p" $[0]
       sed -n "/^[#] Snippet (c$at_group(/,/^[#] Snippet )c$at_group)/p" $[0]
-      at_desc="`sed -n \
+      at_desc=`sed -n \
         '/^[#] Snippet (d'$at_group'(/,/^[#] Snippet )d'$at_group')/p' $[0] \
-        | sed -n '2s/^[#] //p'`"
+        | sed -n '2s/^[#] //p'`
       echo 'if $at_verbose; then'
       echo '  at_banner="$[0]: '$at_desc'"'
       echo '  at_dashes=`echo $at_banner | sed s/./=/g`'