Changeset 17573 for gsdl/trunk/perllib
- Timestamp:
- 2008-10-23T09:59:13+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/basebuilder.pm
r17110 r17573 227 227 &util::mk_all_dir($textdir); 228 228 } 229 229 230 if ($self->{'incremental'}) { 231 # some classes may need to do some additional initialisation 232 $self->init_for_incremental_build(); 233 } 234 235 } 236 237 # implement this in subclass if want to do additional initialisation for an 238 # incremental build 239 sub init_for_incremental_build { 240 my $self = shift (@_); 230 241 } 231 242 … … 316 327 } 317 328 329 # implement this in subclass if want to do extra stuff at the end of building 330 # all the indexes 318 331 sub build_indexes_extra { 319 332 my $self = shift(@_); … … 504 517 print STDERR "</Stage>\n" if $self->{'gli'}; 505 518 } 519 520 # implement this in subclass if want to add extra stuff to build.cfg 521 sub build_cfg_extra { 522 my $self = shift(@_); 523 my ($build_cfg) = @_; 524 525 } 526 506 527 507 528 sub collect_specific { … … 580 601 } 581 602 582 # implement this in subclass if want to add extra stuff to build.cfg583 sub build_cfg_extra {584 my $self = shift(@_);585 my ($build_cfg) = @_;586 587 }588 603 589 604 … … 620 635 } 621 636 637 # sometimes we need to read in an existing build.cfg - for example, 638 # if doing each stage of building separately, or when doing incremental 639 # building 640 sub read_build_cfg { 641 my $self = shift(@_); 642 643 my $buildconfigfile = &util::filename_cat($self->{'build_dir'}, "build.cfg"); 644 645 if (!-e $buildconfigfile) { 646 # try the index dir - but do we know where it is?? try here 647 $buildconfigfile = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "index", "build.cfg"); 648 if (!-e $buildconfigfile) { 649 #we cant find a config file - just ignore the field list 650 return undef; 651 } 652 } 653 654 my $buildcfg = &colcfg::read_build_cfg( $buildconfigfile); 655 return $buildcfg; 656 657 } 622 658 623 659 sub print_stats {
Note:
See TracChangeset
for help on using the changeset viewer.