Changeset 19485 for gsdl/trunk/bin/script/build
- Timestamp:
- 2009-05-16T15:21:27+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/bin/script/build
r19446 r19485 360 360 } 361 361 &gsdl_import(); 362 if (&has_content ($archivedir, "^ (archiveinf-(doc|src).gdb|OIDcount)\$")) {362 if (&has_content ($archivedir, "^archiveinf-doc.gdb\$")) { 363 363 &gsdl_build(); 364 364 } else { … … 469 469 } 470 470 } else { 471 print $out `ls $archivedir`; 472 471 473 my $msg = "build: ERROR: import.pl failed\n"; 472 474 print $out "\n$msg"; … … 505 507 &append_file ($out, "$outfile.build"); 506 508 507 if (($removeold && -e &util::filename_cat ($buildingdir, "text", "$collection.gdb" )) || 508 ($removeold == 0 && -e &util::filename_cat ($indexdir, "text", "$collection.gdb"))) { 509 my @db_exts = ( ".ldb", ".bdb", ".gdb", ".db" ); 510 my $build_ok = 0; 511 foreach my $db_ext (@db_exts) { 512 if ($removeold && (-e &util::filename_cat ($buildingdir, "text", "$collection$db_ext"))) { 513 $build_ok = 1; 514 last; 515 } 516 if (($removeold==0) && (-e &util::filename_cat ($indexdir, "text", "$collection$db_ext"))) { 517 $build_ok = 1; 518 last; 519 } 520 } 521 522 if ($build_ok) { 509 523 print $out "$collection collection built successfully\n\n"; 510 524 if ($remove_archives) {
Note:
See TracChangeset
for help on using the changeset viewer.