protec for with if

This commit is contained in:
David MacKenzie 1994-09-18 03:32:50 +00:00
parent e5fdcf0049
commit 1a0e293e20
3 changed files with 30 additions and 24 deletions

View 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

View 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

View 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