Add '--' option for passing extra arguments to the test.

This commit is contained in:
Francois Gouget 2002-12-16 22:11:51 +00:00 committed by Alexandre Julliard
parent e8ccafe4f7
commit 3efdf38fcd
1 changed files with 7 additions and 4 deletions

View File

@ -72,10 +72,14 @@ while [ "$#" != 0 ]; do
;;
-T)
shift; topobjdir="$1"
if [ -d "$topobjdir" ]; then :; else usage; fi
if [ ! -d "$topobjdir" ]; then usage; fi
;;
--)
break
;;
*)
infile="$1"
;;
esac
shift
done
@ -90,9 +94,8 @@ fi
# check/detect topobjdir
if [ -n "$topobjdir" ]; then
if [ -f "$topobjdir/server/wineserver" ]
then :
else
if [ ! -f "$topobjdir/server/wineserver" ]
then
echo "Wrong -T argument, $topobjdir/server/wineserver does not exist" 2>&1
usage
fi