/[local]/test_config.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /test_config.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Jun 16 18:11:14 2002 UTC (21 years, 9 months ago) by dpavlin
Branch: MAIN
File MIME type: text/plain
support for all LIBRI, separate configuraiton files, script for
test of config files

1 dpavlin 1.1 #!/usr/bin/perl
2     #
3     # test configuration files
4    
5     require "./common.pm";
6    
7     # check mps_header
8     require "./search/config.pm";
9     foreach (split(/\n/,$common::mps_header)) {
10     if (/^F /) {
11     my (undef,$fld,undef) = split(/ /,$_,3);
12     die "fix 'common.pm' field $fld in mps_header is not in *SearchFieldNames" if (!grep(/$fld/,@main::NormalSearchFieldNames) && !grep(/$fld/,@main::AdvancedSearchFieldNames));
13     }
14     }
15    
16     ## check search/config.pm
17     foreach (@default::FieldDisplayOrder) {
18     die "fix 'search/config.pm' field $_ in FieldDisplayOrder is not in FieldNames" if (! $default::FieldNames{$_});
19     }
20     foreach (@default::Separator) {
21     die "fix 'search/config.pm' field $_ in Separator is not in FieldNames" if (! $default::FieldNames{$_});
22     }
23    

  ViewVC Help
Powered by ViewVC 1.1.26