]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
protec for with if
authorDavid MacKenzie <djm@djmnet.org>
Sun, 18 Sep 1994 03:32:50 +0000 (03:32 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Sun, 18 Sep 1994 03:32:50 +0000 (03:32 +0000)
autoheader.in
autoheader.sh
bin/autoheader.in

index c4040f9674499ad48b26be0509e7436abb9c44ea..354d4d09d90f2392ccd710cd88f0be6161212079 100644 (file)
@@ -224,14 +224,16 @@ test -f ${config_h}.bot && cat ${config_h}.bot
 
 status=0
 
-for sym in $syms; do
-  if fgrep $sym $TEMPLATES >/dev/null; then
-    : # All is well.
-  else
-    echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
-    status=1
-  fi
-done
+if test -n "$syms"; then
+  for sym in $syms; do
+    if fgrep $sym $TEMPLATES >/dev/null; then
+      : # All is well.
+    else
+      echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
+      status=1
+    fi
+  done
+fi
 
 if test $# -eq 0; then
   if test $status -eq 0; then
index c4040f9674499ad48b26be0509e7436abb9c44ea..354d4d09d90f2392ccd710cd88f0be6161212079 100644 (file)
@@ -224,14 +224,16 @@ test -f ${config_h}.bot && cat ${config_h}.bot
 
 status=0
 
-for sym in $syms; do
-  if fgrep $sym $TEMPLATES >/dev/null; then
-    : # All is well.
-  else
-    echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
-    status=1
-  fi
-done
+if test -n "$syms"; then
+  for sym in $syms; do
+    if fgrep $sym $TEMPLATES >/dev/null; then
+      : # All is well.
+    else
+      echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
+      status=1
+    fi
+  done
+fi
 
 if test $# -eq 0; then
   if test $status -eq 0; then
index c4040f9674499ad48b26be0509e7436abb9c44ea..354d4d09d90f2392ccd710cd88f0be6161212079 100644 (file)
@@ -224,14 +224,16 @@ test -f ${config_h}.bot && cat ${config_h}.bot
 
 status=0
 
-for sym in $syms; do
-  if fgrep $sym $TEMPLATES >/dev/null; then
-    : # All is well.
-  else
-    echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
-    status=1
-  fi
-done
+if test -n "$syms"; then
+  for sym in $syms; do
+    if fgrep $sym $TEMPLATES >/dev/null; then
+      : # All is well.
+    else
+      echo "$0: Symbol \`${sym}' is not covered by $TEMPLATES" >&2
+      status=1
+    fi
+  done
+fi
 
 if test $# -eq 0; then
   if test $status -eq 0; then