Changeset 38698 for main/trunk
- Timestamp:
- 2024-02-06T12:58:37+13:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/convertutil.pm
r30599 r38698 87 87 { 88 88 my ($command,$options) = @_; 89 90 89 91 90 # $options points to a hashtable that must have fields for: … … 234 233 235 234 if (open(ARGSOUT,">$args_filename")) { 236 print ARGSOUT $command; 235 # for portability between Greenstone installation, substitute gsdl environment variable in $command 236 my $gsdl3srchome = $ENV{'GSDL3SRCHOME'}; 237 my $gsdl_substitute_command = $command; 238 $gsdl_substitute_command =~ s@$gsdl3srchome@\$GSDL3SRCHOME@g; 239 240 print ARGSOUT $gsdl_substitute_command; 237 241 print ARGSOUT "\n"; 238 242 close(ARGSOUT); … … 300 304 if (defined $prev_command) { 301 305 # if commands are different 302 if ($prev_command ne $command) { 306 307 # but first apply the gsdl environment variable substitute, for portability 308 my $gsdl3srchome = $ENV{'GSDL3SRCHOME'}; 309 my $gsdl_substitute_command = $command; 310 $gsdl_substitute_command =~ s@$gsdl3srchome@\$GSDL3SRCHOME@g; 311 312 if ($prev_command ne $gsdl_substitute_command) { 303 313 # need to rerun command 304 314 ($regenerated,$result,$had_error)
Note:
See TracChangeset
for help on using the changeset viewer.