#!/bin/sh
if [ ! $1 ] ; then
echo "usage: basename \$1"
infile=revdev
else infile=$1
fi
### latex --file-line-error-style "%f"
#PATH=$PATH:/mnt/sda5/texlife/usr/local/texlive/2007/bin/i386-linux
PATH=$PATH:/mnt/home/texlife/usr/local/texlive/2007/bin/i386-linux
export PATH
cp $infile.tex $infile.tex.bak
rm -f $infile.html
#rm -f *.css
#cd $1 # needed...
#cd /mnt/sda9/www/www2
htlatex $infile "html,$2" # <-- split pages into $2 levels
for file in $(ls $infile*.html) ; do
echo "<BODY BACKGROUND="paper.gif" >" >> $file
done
#cp $infile.html noframes.html
#htlatex $infile "html,3,frames"
#cp noframes.html index3.html
#cp handmade.html $infile.html
#ftp -u ftp://xxxx:yyy@zzz/ $infile.css *.html
rm *.ps *.4ct *.aux *.dvi *.idv *.tmp *.4tc *.lg *.xref *.log *.tex.bak *.out *.pdf *.toc
run-fossil.sh www 1
echo bye.