Index: openacs-4/packages/acs-lang/bin/check-catalog-file-path.pl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/bin/check-catalog-file-path.pl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-lang/bin/check-catalog-file-path.pl 29 Oct 2002 17:58:27 -0000 1.1 +++ openacs-4/packages/acs-lang/bin/check-catalog-file-path.pl 19 Dec 2002 17:49:10 -0000 1.2 @@ -22,7 +22,7 @@ # Undefine the record separator to read the whole file in one go undef $/; my $file_contents = ; -$file_contents =~ m## +$file_contents =~ m## or die "catalog file $file_path does not have a root xml node on parsable format"; my ($xml_package, $xml_locale, $xml_charset) = ($1, $2, $3); Index: openacs-4/packages/acs-lang/bin/check-catalog.sh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/bin/check-catalog.sh,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-lang/bin/check-catalog.sh 9 Dec 2002 16:04:39 -0000 1.11 +++ openacs-4/packages/acs-lang/bin/check-catalog.sh 19 Dec 2002 17:49:10 -0000 1.12 @@ -6,19 +6,24 @@ # specifically the script does the following: # # 1) Checks that the info in the catalog filename matches info in -# its xml content (package_key, locale and charset). +# its xml content (package_key, locale and charset). # # 2) Checks that the set of keys in the message catalog is identical to the -# set of keys in the adp, info, sql, and tcl files in the package. +# set of keys in the adp, info, sql, and tcl files in the package. # # 3) Checks that the set of keys in non-en_US catalog files is present # in the en_US catalog file of the package. # +# 4) Checks that all keys in non-en_US catalog files are present in the en_US one. +# +# 5) Checks that the package version in every catalog file is consistent with what +# is in the corresponding info file. +# # The scripts assumes that message lookups in adp and info files are # on the format #package_key.message_key#, and that message lookups # in tcl files are always done with the underscore procedure. # -# usage: check-catalog.sh [package_key] +# usage: check-catalog.sh [package_key package_key ...] # # @author Peter Marklund (peter@collaboraid.biz) @@ -28,10 +33,24 @@ echo $(${script_path}/mygrep '