Ignore:
Timestamp:
2009-05-12T17:29:56+12:00 (15 years ago)
Author:
ak19
Message:

Getting the incremental build scripts to work on Windows (it already works on the Vista here, but only because .pl files were associated with Perl).

File:
1 edited

Legend:

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

    r18529 r19409  
    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    }
    3944}
    4045
     
    102107   
    103108    my $final_status = 0;
     109
     110    my $launch_cmd = "";
     111    $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S " if($ENV{'GSDLOS'} =~ m/windows/);
    104112   
    105113    print "\n";
     
    107115    print "* Running  Import  Stage\n";
    108116    print "************************\n";
    109    
    110     my $import_cmd = "full-import.pl $quoted_argv \"$collect\"";
    111    
     117
     118    my $import_cmd = $launch_cmd . "full-import.pl $quoted_argv \"$collect\"";
     119
    112120    my $import_status = system($import_cmd)/256;
    113121   
     
    118126    print "************************\n";
    119127   
    120     my $buildcol_cmd = "full-buildcol.pl $quoted_argv \"$collect\"";
     128    my $buildcol_cmd = $launch_cmd . "full-buildcol.pl $quoted_argv \"$collect\"";
    121129    my $buildcol_status = system($buildcol_cmd)/256;
    122130    if ($buildcol_status == 0) {
Note: See TracChangeset for help on using the changeset viewer.