Ignore:
Timestamp:
2009-05-12T18:31:55+12:00 (15 years ago)
Author:
ak19
Message:

Further modifications to launching perl on windows in the new incremental and full building scripts: Removed the check inside the BEGIN statement that insisted on PERLPATH being defined. Now the code uses PERLPATH for launching Perl on Windows if this is defined, otherwise it refers to just perl (assuming it is on the PATH already).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/incremental-rebuild.pl

    r19409 r19410  
    3737    die "GSDLOS not set\n" unless defined $ENV{'GSDLOS'};
    3838    unshift (@INC, "$ENV{'GSDLHOME'}/perllib");
    39 
    40     # for windows, need PERLPATH in order to launch Perl
    41     if($ENV{'GSDLOS'} =~ m/windows/) {
    42      die "PERLPATH, which is required for Windows, is not set.\n" unless defined $ENV{'PERLPATH'};
    43     }
    4439}
    4540
     
    7166   
    7267    my $launch_cmd = "";
    73     $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S " if($ENV{'GSDLOS'} =~ m/windows/);
     68    if($ENV{'GSDLOS'} =~ m/windows/) {
     69    if($ENV{'PERLPATH'}) {
     70        $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S ";
     71    } else {
     72        $launch_cmd = "perl -S ";
     73    }
     74    }
    7475
    7576    print "\n";
Note: See TracChangeset for help on using the changeset viewer.