changed reading hint
[gromacs/adressmacs.git] / src / mkhtml
blob770bc54e2fa52aaa2cde968d86981a6f7d5b94a9
1 #!/bin/csh -f
3 echo "Generating html manual for GROMACS programs"
4 echo "-------------------------------------------"
6 setenv VER 2.0
7 setenv HTML $GMXHOME/html
8 if ( ! -d $HTML ) mkdir $HTML
9 setenv MANDIR online
10 setenv HTMLOL $HTML/$MANDIR
11 if ( ! -d $HTMLOL ) mkdir $HTMLOL
12 setenv INDEX $HTML/$MANDIR.html
13 if ( -f $INDEX ) \rm $INDEX
15 cat > $INDEX << EOD
16 <HTML>
17 <TITLE>GROMACS $VER Manual </TITLE>
18 <BODY>
19 <H1>GROMACS $VER manual</H1>
20 <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10>
21 <TR>
22 <TD VALIGN=top WIDTH="25%">
23 <h3>General</h3>
24 <A HREF="changes$VER.html">New features</a>
25 <br>
26 <br><A HREF="$MANDIR/getting_started.html">Getting Started</a>
27 <br>
28 <br><A HREF="$MANDIR/flow.html" >Flow chart</a>
29 <br>
30 <br><A HREF="$MANDIR/files.html" >File formats</a>
31 <br>
32 <br><A HREF="$MANDIR/mdp_opt.html" >mdp options</a>
33 <br>
34 <br><A HREF="$MANDIR/count.html" >Top of the pops</a>
35 </TD>
36 <TD VALIGN=top WIDTH="75%">
37 <h3>Programs</h3>
38 <multicol cols=5>
39 <A HREF="$MANDIR/options.html" >Options</a>
40 <br>
41 EOD
43 cd $GMXHOME/bin/$GMXCPU
44 foreach i ( * )
45 if ( ( -x $i ) && ( $i != "my_dssp" ) && ( $i != "luck" ) ) then
46 echo -n "$i "
47 cd $HTMLOL
48 $GMXHOME/bin/$GMXCPU/$i -quiet -man html >& /dev/null
49 cat >> $INDEX << EOK
50 <br><a href="$MANDIR/$i.html">$i</a>
51 EOK
52 endif
53 cd $GMXHOME/bin/$GMXCPU
54 endif
55 end
57 cat >> $INDEX << EOM
58 </multicol>
59 </TD>
60 </TR>
61 </TABLE>
62 </BODY>
63 </HTML>
64 EOM
66 echo ""
67 echo ""
68 echo "New html pages in $HTML"
69 echo "file:$INDEX"
71 #last line