Changeset 1678 for trunk/gsdl/bin/script/build
- Timestamp:
- 2000-11-20T14:00:34+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/build
r1507 r1678 24 24 use util; 25 25 use 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) 30 my $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'}; 26 35 27 36 &parse_args (\@ARGV); … … 149 158 if (-e $download_dir) { 150 159 # 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"; 152 161 $download_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/; 153 162 $download_cmd .= " -out \"$outfile.download\"" if $use_out; … … 226 235 print $out "importing the $collection collection\n\n"; 227 236 228 my $import_cmd = "perl " . &util::filename_cat ($bindir, "script", "import.pl");237 my $import_cmd = "perl -S import.pl"; 229 238 $import_cmd .= " -out \"$outfile.import\"" if $use_out; 230 239 $import_cmd .= " -removeold" unless $append; … … 252 261 print $out "building the $collection collection\n\n"; 253 262 254 my $build_cmd = "perl " . &util::filename_cat ($bindir, "script", "buildcol.pl");263 my $build_cmd = "perl -S buildcol.pl"; 255 264 $build_cmd .= " -out \"$outfile.build\"" if $use_out; 256 265 $build_cmd .= " -collectdir \"$collectdir\"" if $collectdir =~ /\w/;
Note:
See TracChangeset
for help on using the changeset viewer.