Changeset 15711 for gsdl/trunk/perllib/dbutil.pm
- Timestamp:
- 2008-05-27T12:17:05+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.