Fix redirection in runtest
Francois Gouget
fgouget at free.fr
Tue Dec 10 14:52:10 CST 2002
Changelog:
* tools/runtest
Fix stderr redirection
Simplify $infile existence test
Index: tools/runtest
===================================================================
RCS file: /home/wine/wine/tools/runtest,v
retrieving revision 1.1
diff -u -r1.1 runtest
--- tools/runtest 11 Nov 2002 20:25:54 -0000 1.1
+++ tools/runtest 10 Dec 2002 20:30:22 -0000
@@ -24,7 +24,7 @@
usage()
{
- cat >2 <<EOF
+ cat >&2 <<EOF
Usage: $0 [options] input_file
@@ -81,7 +81,7 @@
done
# 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
if [ -z "$program" ]; then
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
The greatest programming project of all took six days; on the seventh day the
programmer rested. We've been trying to debug the *&^%$#@ thing ever since.
Moral: design before you implement.
More information about the wine-patches
mailing list