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.10 -r1.11 --- openacs-4/packages/acs-lang/bin/check-catalog.sh 3 Dec 2002 17:32:03 -0000 1.10 +++ openacs-4/packages/acs-lang/bin/check-catalog.sh 9 Dec 2002 16:04:39 -0000 1.11 @@ -47,20 +47,18 @@ # Check that all keys in the catalog file are either in tcl or adp or info files for catalog_key in `get_catalog_keys catalog/${package_key}.en_US.ISO-8859-1.xml` do - find -iname '*.tcl' | xargs ${script_path}/mygrep \ - "${package_key}\.$catalog_key" \ - || \ - find -regex '.*\.\(info\|adp\|sql\|tcl\)' | xargs ${script_path}/mygrep \ - "${package_key}\.$catalog_key" \ - || \ - echo "$0: $package_key - Warning key $catalog_key in catalog file not found in any adp, info, sql, or tcl file" + lookup_lines=$(find ../ -regex '.*\.\(info\|adp\|sql\|tcl\)' | xargs egrep "${package_key}\.$catalog_key") + + if [ -z "$lookup_lines" ]; then + echo "$0: $package_key - Warning key $catalog_key in catalog file not found in any adp, info, sql, or tcl file" + fi done } check_tcl_file_lookups_are_in_catalog() { # Check that all message lookups in tcl files have entries in the message catalog - for tcl_message_key in $(find -iname '*.tcl'|xargs ${script_path}/mygrep \ + for tcl_message_key in $(find ../ -iname '*.tcl'|xargs ${script_path}/mygrep \ "(?ms)\[_\s+(?:\[ad_conn locale\]\s+)?\"?${package_key}\.([a-zA-Z0-9_\-\.]+)\"?") do egrep -q "