Commit 3efdf38f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent e8ccafe4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment