Books/2013.09-GlassArmonica/tex/make-html.sh
2026-06-30 08:19:02 -07:00

40 lines
986 B
Bash

DEST="/documents and settings/william zeitler/my documents/prj/websites/faithfulbible.com/dw"
# create the PDF
# NOTE: we ALWAYS need to update the PDF
#texify -p w-FaithfulNT.tex
#cp w-FaithfulNT.pdf "$DEST/FaithfulNT.pdf"
# create the HTML
# NOTE: Only update the HTML as necessary
#rm *.htm
for i in *.tex
do
if [ $i == "w-*" ]
then
continue;
fi
j=`echo $i | sed 's/.tex//'`
echo $j
if [ $i -nt $j.htm ]
then
# strip/cleanup the ugly footnotes that tth generates
/tth/tth <w-$i | \
sed 's#<h3>Footnotes:</h3>##' | \
grep -v '<br /><br /><hr /><small>File translated from' | \
grep -v 'T<sub><font size="-1">E</font></sub>X' | \
grep -v 'by <a href="http://hutchinson.belmont.ma.us/tth/">' | \
grep -v 'T<sub><font size="-1">T</font></sub>H</a>,' | \
grep -v 'version 3.60.<br' | \
sed 's#<hr#<hr align=left size=1 width="33%"#' \
>$j.htm
# cp $j.htm "$DEST/nt"
fi
done