DEST_FNT="/docume~1/willia~1/mydocu~1/prj/websites/faithfulbible.com/web/httpdocs" #DEST_TOC="/docume~1/willia~1/mydocu~1/prj/websites/teachingsofthechrist.org/web/httpdocs" # create the HTML # NOTE: Only update the HTML as necessary makefnt="N" # source: filename # fnt: in FNT # toc: in Teachings of the Christ while read source fnt toc; do #empty if [ -z $source ] then continue; fi #comment if [[ $source == [#]* ]] then continue; fi fileroot=`echo $source | sed 's/w-//'` echo $fileroot.tex # output needs to be created? if [ $fileroot.tex -ot $fileroot.htm ] then continue; fi # create w-.tex and w-.tcp? if [ ! -e $source.tex ] then sed <_blank._tex "s/SOURCE/$fileroot/" >$source.tex sed <_blank._tcp "s/SOURCE/$fileroot/" >$source.tcp fi # latex /tth/tth -u -w1 <$source.tex | \ sed 's#

Footnotes:

##' | \ grep -v '


File translated from' | \ grep -v 'TEX' | \ grep -v 'by ' | \ grep -v 'TTH,' | \ grep -v 'version 3.74._\—_g" | \ sed "s__\–_g" | \ sed "s___" | \ sed "s???" |\ DeTTH >$fileroot.htm if [ "Y" == $fnt ] then makefnt="Y" cp $fileroot.htm "$DEST_FNT/nt" fi # if [ "Y" == $toc ] # then # cp $fileroot.htm "$DEST_TOC/text" # fi done