Fix stderr redirection.

Simplify $infile existence test.
This commit is contained in:
Francois Gouget 2002-12-11 00:18:11 +00:00 committed by Alexandre Julliard
parent 725b8b7fcf
commit 2837103fec
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
usage() usage()
{ {
cat >2 <<EOF cat >&2 <<EOF
Usage: $0 [options] input_file Usage: $0 [options] input_file
@ -81,7 +81,7 @@ while [ "$#" != 0 ]; do
done done
# we must have found an input file # we must have found an input file
if [ -f "$infile" ]; then :; else usage; fi if [ ! -f "$infile" ]; then usage; fi
# set program to the .c file base name if not specified otherwise # set program to the .c file base name if not specified otherwise
if [ -z "$program" ]; then if [ -z "$program" ]; then