Show
Ignore:
Timestamp:
12.05.2009 17:29:56 (11 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).

Files:
1 modified

Legend:

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

    r18660 r19409  
    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    } 
    3843} 
    3944 
     
    107112 
    108113    my $import_cmd = "import.pl"; 
     114    if($ENV{'GSDLOS'} =~ m/windows/) { 
     115    $import_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $import_cmd"; 
     116    #$import_cmd = "perl -S $import_cmd"; 
     117    } 
    109118    if (-e $archiveinf_doc) { 
    110119    $import_cmd .= " -incremental";