#!/bin/sh # # Check consistency of the en_US message catalog of the given package. # Checks that the set of keys in the message catalog is identical to the # set of keys in the adp, info, and tcl files in the package. # Also checks that the info in the catalog filename matches info in # its xml content (package_key, locale and charset). # # 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 # # @author Peter Marklund (peter@collaboraid.biz) ### Functions start check_catalog_keys_have_lookups() { # Check that all keys in the catalog file are either in tcl or adp or info files for catalog_key in $(${script_path}/mygrep '