Changeset 15711
- Timestamp:
- 2008-05-27T12:17:05+12:00 (16 years ago)
- Location:
- gsdl/trunk/perllib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/basebuilder.pm
r15710 r15711 342 342 } 343 343 else { 344 my $exedir = "$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}"; 345 my $exe = &util::get_os_exe (); 346 my $txt2db_exe = &util::filename_cat($exedir, "txt2db$exe"); 347 348 if (!-e "$txt2db_exe" || !open (PIPEOUT, "| txt2db$exe \"$infodb_file_path\"")) { 344 $infodb_handle = &dbutil::open_infodb_write_handle($infodb_file_path); 345 if (!defined($infodb_handle)) 346 { 349 347 print STDERR "<FatalError name='NoRunText2DB'/>\n</Stage>\n" if $self->{'gli'}; 350 die "builder::make_infodatabase - couldn't run $txt2db_exe\n"; 351 } 352 $infodb_handle = *PIPEOUT; 348 die "builder::make_infodatabase - couldn't open infodb write handle\n"; 349 } 353 350 } 354 351 -
gsdl/trunk/perllib/dbutil.pm
r15710 r15711 38 38 39 39 40 sub open_infodb_write_handle 41 { 42 my $infodb_file_path = shift(@_); 43 44 return &open_infodb_write_handle_gdbm($infodb_file_path); 45 } 46 47 40 48 sub read_infodb_file 41 49 { … … 70 78 my $infodb_file_name = &util::get_dirsep_tail($collection_name) . $infodb_file_extension; 71 79 return &util::filename_cat($infodb_directory_path, $infodb_file_name); 80 } 81 82 83 sub open_infodb_write_handle_gdbm 84 { 85 my $infodb_file_path = shift(@_); 86 87 my $txt2db_exe = &util::filename_cat("$ENV{'GSDLHOME'}/bin/$ENV{'GSDLOS'}", "txt2db" . &util::get_os_exe()); 88 if (!-e "$txt2db_exe" || !open(PIPEOUT, "| $txt2db_exe \"$infodb_file_path\"")) 89 { 90 return undef; 91 } 92 93 return *PIPEOUT; 72 94 } 73 95
Note:
See TracChangeset
for help on using the changeset viewer.