#!/bin/sh # Copyright (C) 2004, International Business Machines Corporation # and others. All Rights Reserved. # # Run this in locale/tools and it will create an InterimVettingChart in ../vetting/main # Prefix - will only show files which match the prefix. MATCHIT= #MATCHIT=ar #MATCHIT=fi COMMON=../../common write_index() { TREE=$1 OUTF=${TREE}/index.html echo "INFO: Writing index file " ${OUTF} cat > ${OUTF} <<"EOF" Draft/ALT for CLDR

CLDR 1.2a - Drafts and Alts

EOF date >> ${OUTF} echo '
' >> ${OUTF} echo '

What is this? Click here!

' >> ${OUTF} echo '
' >> ${OUTF} cat >> ${OUTF} < LocaleName# of changesCVS EOF cat ${TREE}/*.idx >> ${OUTF} rm ${TREE}/*.idx cat >> ${OUTF} <

EOF echo '

What is this? Click here!

' >> ${OUTF} echo '
' >> ${OUTF} echo 'Interim page - subject to change. ' >> ${OUTF} date >> ${OUTF} cat >> ${OUTF} < EOF } backup_tree() { TREE=$1 rm -rf ${TREE}.backup1 mv ${TREE}.backup0 ${TREE}.backup1 mv ${TREE} ${TREE}.backup1 } compare_tree() { TREE=$1 mkdir ${TREE} for file in `cd ${COMMON}/${TREE} ; ls ${MATCHIT}*.xml | fgrep -v supplementalData`; do # echo ${TREE} _ ${file} LDMLComparator -d ./${TREE} -vetting -common:gold ${COMMON}/${TREE}/${file} done } mkdir -p ../diff/vetting cd ../diff/vetting if [ ! -d ${COMMON}/main ]; then echo `basename $0` ":## Error: run me from locale/tools." exit 1 fi echo "INFO: Starting in ../diff/vetting" backup_tree main compare_tree main write_index main echo "INFO: Done with ../diff/vetting"