Debian Codegraph @

texmf-dist/doc/metapost/featpost/bash/makehtmlindex.sh

raw
1 #! /bin/bash
2 #cd example
3 #mpost --tex=latex graphs.mp
4 #mv graphs.? graphs.??? ../
5 #cd ..
6 echo "<HTML><HEAD><TITLE>MetaPost Examples</TITLE>"\
7 "<META NAME=\"KEYWORDS\" content=\"MetaPost, Examples, examples, code\">"\
8 "</HEAD><BODY TEXT=\"#000000\" LINK=\"#0000FF\" VLINK=\"#AA00AA\""\
9 "ALINK=\"#AA0000\" BGCOLOR=\"#b0c4de\">"\
10 "<H1><CODE>MetaPost</CODE> Examples</H1>" > MPexamples.html
11 for a in example/*.mp
12 do
13 b=`basename $a .mp`
14 #mpost --tex=latex example/$b
15 echo "<P align=\"center\"><a href=\"./example/"$b.mp"\">"\
16 $b.mp"</a>" >> MPexamples.html
17 for c in $b.?
18 do
19 ./laproof.sh $c
20 ./pngmaker.sh $c.eps
21 echo "<img align=\"middle\" src=\"./png/"$c".png\" alt=\""\
22 $c "\">" >> MPexamples.html
23 done
24 echo "</P>" >> MPexamples.html
25 done
26 echo "<HR SIZE=4><BR><ADDRESS><A HREF=\"lnobreg at gmail\">L. Nobre G.</A>"\
27 "</ADDRESS></BODY></HTML>" >> MPexamples.html
28 #rm *.?
29