Debian Codegraph @

Bonmin/doc/option_pages/genHtml.sh

raw
1 #!/bin/bash
2 for f in $@ ;
3 do
4 NAME=`basename $f .tex`;
5 rm -rf $NAME;
6 awk -v NAME=$NAME '{sub(/FILENAME/,NAME);print}' Head.tex > tmp.tex;
7 latex tmp.tex;
8 latex tmp.tex;
9 latex tmp.tex;
10 tex4ht tmp.tex;
11 awk '{sub(/tmp.css/,"bonmin.css") ; sub(/>tmp</,">BONMIN Options pages<") ; print}' tmp.html | sed -e's/##/#/g' > toto.html;
12 mv toto.html html/$NAME.html
13 #rm tmp.*
14 done