diff options
author | Yang Tse <yangsita@gmail.com> | 2010-01-08 01:48:54 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-01-08 01:48:54 +0000 |
commit | a114b7b1c062e86691bfec04595153b67734b7c7 (patch) | |
tree | 2a6b0da69fc698e8f774989d24c2c15aa4d63c9d /tests/httpserver.pl | |
parent | 8524c04ca98d9c0b5f90d685135e0466e0d8b386 (diff) | |
download | curl-a114b7b1c062e86691bfec04595153b67734b7c7.tar.gz |
sws and tftpd command line option naming adjustments
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-x | tests/httpserver.pl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl index ae1bcec28..22b79159b 100755 --- a/tests/httpserver.pl +++ b/tests/httpserver.pl @@ -9,6 +9,9 @@ my $port = 8999; # just a default my $ipv6; my $pid=".http.pid"; # name of the pidfile my $fork; + +my $flags = ""; + do { if($ARGV[0] eq "-v") { $verbose=1; @@ -33,4 +36,9 @@ do { } } while(shift @ARGV); -exec("server/sws --pidfile $pid$fork $ipv6$port $dir"); +$flags .= "--pidfile \"$pid\" "; +$flags .= "--fork " if(defined($fork)); +$flags .= "--ipv6 " if(defined($ipv6)); +$flags .= "--port $port --srcdir \"$dir\""; + +exec("server/sws $flags"); |