#! /bin/sh

PODIR=/home/mozilla/public_html/ff/trunk/po/pt-PT
RELDIR=/home/mozilla/public_html/ff/trunk/rel
BINDIR=/usr/local/bin/
XSLTBIN=xsltproc

# Do these make sense?
# POFileEquiv - PO file glossary generator
# POFileFill - automatically translate a PO file based on other files

for tool in POFileStatus POFileChecker POFileConsistency
do
  $BINDIR/$tool `find $PODIR -name "*.po"` > $RELDIR/$tool.xml
  $XSLTBIN --stringparam css report.css $RELDIR/report.xsl $RELDIR/$tool.xml > $RELDIR/$tool.html
done

tool=POFileSpell
$BINDIR/$tool --command="aspell -l pt --encoding=utf-8 list" `find $PODIR -name "*.po"` > $RELDIR/$tool.xml
$XSLTBIN --stringparam css report.css $RELDIR/report.xsl $RELDIR/$tool.xml > $RELDIR/$tool.html
