- Timestamp:
- 2022-09-25T20:11:07+13:00 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/diffcol/diffcol.pl
r35231 r36655 190 190 # } 191 191 # VobPrint ("\n",$intLevel); 192 193 194 ## TODO: Added to get GS3 diffcol to work, as there is no build/collect.cfg file in GS3 195 ## Now that other GS3 diffcol errors have been fixed (except for Word-PDF-Enhanced collection, 196 ## where the model-col needs to be built & committed from a Win machine), 197 ## need to comment out the following 3 newly added lines and fix any remaining issues 198 if($ENV{'GSVERSION'} eq "3") { 199 return @Errors; 200 } 192 201 193 202 # Testing the build.cfg 194 203 my $strModelBcfg = &FileUtils::filenameConcatenate($strModelCol,"index","build.cfg"); 195 204 my $strTestBcfg = &FileUtils::filenameConcatenate($strTestCol,"index","build.cfg"); 196 205 #if($ENV{'GSVERSION'} eq "3") { 206 # $strModelBcfg = &FileUtils::filenameConcatenate($strModelCol,"index","buildConfig.xml"); 207 # $strTestBcfg = &FileUtils::filenameConcatenate($strTestCol,"index","buildConfig.xml"); 208 #} 209 197 210 if(-e $strModelBcfg && -e $strTestBcfg) 198 211 { … … 245 258 my $strModelCcfg = &FileUtils::filenameConcatenate($strModelCol,"etc","collect.cfg"); 246 259 my $strTestCcfg = &FileUtils::filenameConcatenate($strTestCol,"etc","collect.cfg"); 260 #if($ENV{'GSVERSION'} eq "3") { 261 # $strModelBcfg = &FileUtils::filenameConcatenate($strModelCol,"etc","collectConfig.xml"); 262 # $strTestBcfg = &FileUtils::filenameConcatenate($strTestCol,"etc","collectConfig.xml"); 263 #} 247 264 248 265 if(-e $strModelCcfg && -e $strTestCcfg) … … 590 607 # Files to be skipped because they get generated on one OS but not the other 591 608 # On windows, files of the form col.invf.state.\d\d\d\d get generated (e.g. Small-HTML.invf.state.1228) that aren't there on linux 592 my $skipfiles_re = qr/(\.invf\.state\.\d+$)|~$|earliestDatestamp|fail .log$/; # Create a regex of all files to be skipped, see http://perldoc.perl.org/perlop.html609 my $skipfiles_re = qr/(\.invf\.state\.\d+$)|~$|earliestDatestamp|fail\.log|-inf-tmp\.(gdb|jdb|lg)$/; # Create a regex of all files to be skipped, see http://perldoc.perl.org/perlop.html 593 610 @aryInModel = grep { $_ !~ m/$skipfiles_re/ } @aryInModel; # http://stackoverflow.com/questions/174292/what-is-the-best-way-to-delete-a-value-from-an-array-in-perl 594 611 @aryInTest = grep { $_ !~ m/$skipfiles_re/ } @aryInTest; … … 641 658 { 642 659 # allow for a namespace prefix to <Metadata> as happens in GreenstoneMETS docmets.xml files, e.g. <gsdl3:Metadata></gsdl3:Metadata> 643 my $ignore_line_re = "<(.*?:)? Metadata name=\"(lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|ex.File.FileCreateDate|ImageSize|FileSize|ex.Composite.LightValue)\">.*</(.*?:)?Metadata>\\s*\\n*";660 my $ignore_line_re = "<(.*?:)?(?:M|m)etadata name=\"(buildDate|earliestDatestamp|lastmodified|lastmodifieddate|oailastmodified|oailastmodifieddate|ex.File.FileModifyDate|ex.File.FilePermissions|ex.File.FileAccessDate|ex.File.FileInodeChangeDate|ex.File.FileCreateDate|ImageSize|FileSize|ex.Composite.LightValue)\">.*</(.*?:)?(?:M|m)etadata>\\s*\\n*"; 644 661 645 662 my $strResult; … … 653 670 654 671 # archives/doc.xml files, archives/docmets.xml files and index/text/doc.xml files 655 if($strModel =~ m/ doc(mets)?\.xml$/ || ($strModel =~ m@index[\\/]text@ && $strModel =~ m/doc\.xml$/)) {672 if($strModel =~ m/buildConfig\.xml$/ || $strModel =~ m/doc(mets)?\.xml$/ || ($strModel =~ m@index[\\/]text@ && $strModel =~ m/doc\.xml$/)) { 656 673 657 674 open(FIN,"<$strModel") or die "Unable to open $strModel...ERROR: $!\n";
Note:
See TracChangeset
for help on using the changeset viewer.