Changeset 2304


Ignore:
Timestamp:
2001-04-11T12:56:03+12:00 (23 years ago)
Author:
sjboddie
Message:

Altered gsWget.pl slightly so that on windows it now relies on wget.exe
being on the path rather than giving an explicit path to the system call.
This avoids annoying inconsistencies on different windows platforms (e.g.
a system call to "c:\program files\gsdl\bin\windows\wget.exe" won't work
on windows 2000 -- the same call without quotes will fail on all platforms)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gsWget.pl

    r1743 r2304  
    4646}
    4747
     48# if on windows we expect wget to already be on the path -
     49# this allows us to avoid problems when GSDLHOME contains spaces
     50# (double quoting the call doesn't work on win2000)
     51if ($ENV{'GSDLOS'} =~ /^windows$/) {
     52    $cmd = "wget";
     53}
     54
    4855# command-line parameters
    4956my @quoted_argv = map { "\"$_\"" } @ARGV;
Note: See TracChangeset for help on using the changeset viewer.