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-import.pl

    r19409 r19410  
    3636    die "GSDLOS not set\n" unless defined $ENV{'GSDLOS'};
    3737    unshift (@INC, "$ENV{'GSDLHOME'}/perllib");
    38 
    39     # for windows, need PERLPATH in order to launch Perl
    40     if($ENV{'GSDLOS'} =~ m/windows/) {
    41      die "PERLPATH, which is required for Windows, is not set.\n" unless defined $ENV{'PERLPATH'};
    42     }
    4338}
    4439
     
    113108    my $import_cmd = "import.pl";
    114109    if($ENV{'GSDLOS'} =~ m/windows/) {
    115     $import_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $import_cmd";
    116     #$import_cmd = "perl -S $import_cmd";
     110    if($ENV{'PERLPATH'}) {
     111        $import_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $import_cmd";
     112    } else {
     113        $import_cmd = "perl -S $import_cmd";
     114    }
    117115    }
    118116    if (-e $archiveinf_doc) {
Note: See TracChangeset for help on using the changeset viewer.