CatalogueChecker.exe takes a language code followed by a list of
directories in order.  It loads in the catalogue files, and outputs
a list of each tag and how many elements it has.

This can be used to check catalogues of different languages, like
this code fragment from the c2e build script.

CATALOGUE_CHECKER_EXE=//oracle/c2e/Tools/CatalogueChecker/CatalogueChecker.exe
C3_CAT_DIR="//oracle/C3/Remaster/Completed Builds/build 111 multilingual master/CD Image/Install/Install/Catalogue"


	echo Language catalogues are consistent...
	echo -n With C3...
	test_directory_existence "$C3_CAT_DIR"
	for LANG in fr de en-GB
	  do
	    echo -n $LANG...
	    $CATALOGUE_CHECKER_EXE en Footprint/Catalogue "$C3_CAT_DIR" > a.lang || error catcheck en
	    $CATALOGUE_CHECKER_EXE $LANG Footprint/Catalogue "$C3_CAT_DIR" > b.lang || error catcheck $LANG
	    diff a.lang b.lang
	    if [ $? == 1 ]; then
	      echo Catalogue tag mismatch
	      exit 1
	    elif [ $? == 2 ]; then
	      error diff
	    fi
	  done
	echo done
	echo -n Standalone...
	test_directory_existence "$C3_CAT_DIR"
	for LANG in fr de en-GB
	  do
	    echo -n $LANG...
	    $CATALOGUE_CHECKER_EXE en Footprint/Catalogue > a.lang || error catcheck en
	    $CATALOGUE_CHECKER_EXE $LANG Footprint/Catalogue > b.lang || error catcheck $LANG
	    diff a.lang b.lang
	    if [ $? == 1 ]; then
	      echo Catalogue tag mismatch
	      exit 1
	    elif [ $? == 2 ]; then
	      error diff
	    fi
	  done
	echo done


Creature Labs
Wed Mar 27 09:57:26  2002
