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