Changeset 16102 for gsdl/trunk/bin
- Timestamp:
- 2008-06-23T10:54:24+12:00 (16 years ago)
- Location:
- gsdl/trunk/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/bin/script/g2f-buildcol.pl
r14959 r16102 205 205 206 206 if (opendir(DIR, $export_dir)) { 207 my @hash_dirs = grep { /\.dir$/ } readdir(DIR);208 207 closedir DIR; 208 ## my @hash_dirs = grep { /\.dir$/ } readdir(DIR); 209 my @hash_dirs = &g2futil::get_all_hash_dirs($export_dir); 209 210 210 211 … … 213 214 214 215 my $docmets_filename 215 = &util::filename_cat($ export_dir,$hd,"docmets.xml");216 = &util::filename_cat($hd,"docmets.xml"); 216 217 217 218 print STDERR "<Build>\n" if $gli; -
gsdl/trunk/bin/script/g2f-import.pl
r15657 r16102 204 204 if ( -e $export_dir ) { 205 205 print "***\n"; 206 print "* Removing existing Greenstone $gs_col objects from Fedora $pid_namespace\n";206 print "* Updating existing Greenstone $gs_col objects from Fedora $pid_namespace\n"; 207 207 print "***\n"; 208 208 209 209 # readdir 210 210 if (opendir(DIR, $export_dir)) { 211 my @hash_dirs = grep { /\.dir$/ } readdir(DIR); 211 212 212 closedir DIR; 213 213 my @hash_dirs = &g2futil::get_all_hash_dirs($export_dir,$maxdocs); 214 214 215 215 # for each hash dir, purge its respective PID 216 foreach my $hd (@hash_dirs) { 217 218 my $full_hd = &util::filename_cat($export_dir,$hd); 216 foreach my $full_hd (@hash_dirs) { 217 219 218 my $hash_id = &g2futil::get_hash_id($full_hd); 220 219 … … 226 225 227 226 if ($dsinfo_status == 0) { 228 print " $pid being removed.\n";227 print " $pid being updated.\n"; 229 228 &g2futil::run_purge($pid,$options); 230 229 }
Note:
See TracChangeset
for help on using the changeset viewer.