- Timestamp:
- 2011-08-03T21:17:30+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/incremental-buildcol.pl
r24192 r24362 42 42 no strict 'subs'; # allow barewords (eg STDERR) as function arguments 43 43 44 use Config; # for getting the perlpath in the recommended way45 44 use util; 46 45 use colcfg; … … 92 91 print STDERR "Unable to use collection \"$collection\" within \"$collect_dir\"\n"; 93 92 exit -1; 94 } 95 93 } 96 94 97 95 if (!defined $build_dir) { … … 103 101 my $quoted_argv = join(" ", map { "\"$_\"" } @filtered_argv); 104 102 105 my $buildcol_cmd = "buildcol.pl"; 106 if($ENV{'PERLPATH'}) { 107 # need to ensure that the path to perl is quoted (in case there's spaces in it) 108 if($ENV{'GSDLOS'} =~ m/windows/) { 109 $buildcol_cmd = "\"$ENV{'PERLPATH'}\\Perl.exe\" -S $buildcol_cmd"; 110 } else { 111 $buildcol_cmd = "\"$ENV{'PERLPATH'}/perl\" -S $buildcol_cmd"; 112 } 113 } else { 114 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 115 $buildcol_cmd = "\"$Config{perlpath}\" -S $buildcol_cmd"; 116 } 103 my $buildcol_cmd = "\"".&util::get_perl_exec()."\" -S buildcol.pl"; 117 104 118 105 # Read in the collection configuration file.
Note:
See TracChangeset
for help on using the changeset viewer.