Ignore:
Timestamp:
2009-11-10T20:52:58+13:00 (14 years ago)
Author:
oranfry
Message:

Since we can now have a Perl installation inside Greenstone on linux as well, full and incremental build and import perl scripts also launch perl with the -S flag in the Linux case now (not just in the Windows case anymore).

File:
1 edited

Legend:

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

    r20606 r20925  
    107107
    108108    my $import_cmd = "import.pl";
    109     if($ENV{'GSDLOS'} =~ m/windows/) {
    110     if($ENV{'PERLPATH'}) {
    111         # need to ensure that the path to perl is quoted (in case there's spaces in it)
     109    if($ENV{'PERLPATH'}) {
     110    # need to ensure that the path to perl is quoted (in case there's spaces in it)
     111    if($ENV{'GSDLOS'} =~ m/windows/) {
    112112        $import_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $import_cmd";
    113113    } else {
    114         $import_cmd = "perl -S $import_cmd";
     114        $import_cmd = "\"$ENV{'PERLPATH'}/perl\" -S $import_cmd";
    115115    }
     116    } else {
     117    $import_cmd = "perl -S $import_cmd";
    116118    }
     119
    117120    if (-e $archiveinf_doc) {
    118121    $import_cmd .= " -incremental";
Note: See TracChangeset for help on using the changeset viewer.