Changeset 19620 for gsdl


Ignore:
Timestamp:
2009-05-27T14:22:29+12:00 (15 years ago)
Author:
ak19
Message:

The full and incremental versions of import, build and rebuild now launch the local Windows perl executable with quotes around its path (in order to preserve any spaces in the path to the Perl exec.)

Location:
gsdl/trunk/bin/script
Files:
6 edited

Legend:

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

    r19410 r19620  
    4242if($ENV{'GSDLOS'} =~ m/windows/) {
    4343    if($ENV{'PERLPATH'}) {
    44     $buildcol_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $buildcol_cmd";
     44    # need to ensure that the path to perl is quoted (in case there's spaces in it)
     45    $buildcol_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $buildcol_cmd";
    4546    } else {
    4647    $buildcol_cmd = "perl -S $buildcol_cmd";
  • gsdl/trunk/bin/script/full-import.pl

    r19410 r19620  
    4242if($ENV{'GSDLOS'} =~ m/windows/) {
    4343    if($ENV{'PERLPATH'}) {
    44     $import_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $import_cmd";
     44    # need to ensure that the path to perl is quoted (in case there's spaces in it)
     45    $import_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $import_cmd";
    4546    } else {
    4647    $import_cmd = "perl -S $import_cmd";
     
    5657}
    5758
     59
     60
  • gsdl/trunk/bin/script/full-rebuild.pl

    r19410 r19620  
    106106    if($ENV{'GSDLOS'} =~ m/windows/) {
    107107    if($ENV{'PERLPATH'}) {
    108         $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S ";
     108        # need to ensure that the path to perl is quoted (in case there's spaces in it)
     109        $launch_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S ";
    109110    } else {
    110111        $launch_cmd = "perl -S ";
  • gsdl/trunk/bin/script/incremental-buildcol.pl

    r19410 r19620  
    106106    if($ENV{'GSDLOS'} =~ m/windows/) {
    107107    if($ENV{'PERLPATH'}) {
    108         $buildcol_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $buildcol_cmd";
     108        # need to ensure that the path to perl is quoted (in case there's spaces in it)
     109        $buildcol_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $buildcol_cmd";
    109110    } else {
    110111        $buildcol_cmd = "perl -S $buildcol_cmd";
  • gsdl/trunk/bin/script/incremental-import.pl

    r19410 r19620  
    109109    if($ENV{'GSDLOS'} =~ m/windows/) {
    110110    if($ENV{'PERLPATH'}) {
    111         $import_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S $import_cmd";
     111        # need to ensure that the path to perl is quoted (in case there's spaces in it)
     112        $import_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $import_cmd";
    112113    } else {
    113114        $import_cmd = "perl -S $import_cmd";
  • gsdl/trunk/bin/script/incremental-rebuild.pl

    r19410 r19620  
    6868    if($ENV{'GSDLOS'} =~ m/windows/) {
    6969    if($ENV{'PERLPATH'}) {
    70         $launch_cmd = "$ENV{'PERLPATH'}\\Perl.exe -S ";
     70        # need to ensure that the path to perl is quoted (in case there's spaces in it)
     71        $launch_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S ";
    7172    } else {
    7273        $launch_cmd = "perl -S ";
Note: See TracChangeset for help on using the changeset viewer.