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/incremental-rebuild.pl

    r18510 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
     
    6570    my $final_status = 0;
    6671   
     72    my $launch_cmd = "";
     73    $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S " if($ENV{'GSDLOS'} =~ m/windows/);
     74
    6775    print "\n";
    6876    print "************************\n";
     
    7078    print "************************\n";
    7179   
    72     my $import_cmd = "incremental-import.pl $quoted_argv \"$collect\"";
     80    my $import_cmd = $launch_cmd . "incremental-import.pl $quoted_argv \"$collect\"";
    7381   
    7482    my $import_status = system($import_cmd)/256;
     
    8189   
    8290
    83     my $buildcol_cmd = "incremental-buildcol.pl $quoted_argv \"$collect\"";
     91    my $buildcol_cmd = $launch_cmd . "incremental-buildcol.pl $quoted_argv \"$collect\"";
    8492    my $buildcol_status = system($buildcol_cmd)/256;
    8593    if ($buildcol_status != 0) {
Note: See TracChangeset for help on using the changeset viewer.