Ignore:
Timestamp:
2000-11-20T14:00:34+13:00 (23 years ago)
Author:
sjboddie
Message:

Re-added some recent changes that got lost when the cvs repository was
moved. This was mostly changes to the collector and building code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/build

    r1507 r1678  
    2424use util;
    2525use cfgread;
     26
     27# set up path - this allows for paths not to be supplied to system calls
     28# and overcomes problems when GSDLHOME contains spaces (double quoting
     29# the call doesn't work on win2k and probably other variants of winnt)
     30my $path_separator = ":";
     31$path_separator = ";" if $ENV{'GSDLOS'} =~ /^windows$/;
     32$ENV{'PATH'} = &util::filename_cat($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}) .
     33    $path_separator . &util::filename_cat($ENV{'GSDLHOME'}, "bin", "script") .
     34    $path_separator . $ENV{'PATH'};
    2635
    2736&parse_args (\@ARGV);
     
    149158        if (-e $download_dir) {
    150159            # copy download_dir and all it contains to the import directory
    151             my $download_cmd = "perl " . &util::filename_cat ($bindir, "script", "filecopy.pl");
     160            my $download_cmd = "perl -S filecopy.pl";
    152161            $download_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/;
    153162            $download_cmd .= " -out \"$outfile.download\"" if $use_out;
     
    226235    print $out "importing the $collection collection\n\n";
    227236
    228     my $import_cmd = "perl " . &util::filename_cat ($bindir, "script", "import.pl");
     237    my $import_cmd = "perl -S import.pl";
    229238    $import_cmd .= " -out \"$outfile.import\"" if $use_out;
    230239    $import_cmd .= " -removeold" unless $append;
     
    252261    print $out "building the $collection collection\n\n";
    253262
    254     my $build_cmd = "perl " . &util::filename_cat ($bindir, "script", "buildcol.pl");
     263    my $build_cmd = "perl -S buildcol.pl";
    255264    $build_cmd .= " -out \"$outfile.build\"" if $use_out;
    256265    $build_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/;
Note: See TracChangeset for help on using the changeset viewer.