4 echo "Error: provide the binary directory as first argument,"
5 echo "and the location of programs.txt as the second."
6 echo "A html subdirectory will be created in the current dir."
18 set HTMLOL
= $HTML/$MANDIR
19 set HTMLIDX
= $HTML/$MANDIR.html
21 set GENERAL
= "getting_started:Getting_Started flow:Flow_Chart files:File_Formats mdp_opt:mdp_options"
28 echo "Generating table of contents in $HTMLIDX"
29 echo "-------------------------------------------"
31 if ( ! -d $HTML ) mkdir
$HTML
32 if ( ! -d $HTMLOL ) mkdir
$HTMLOL
34 if ( -f $HTMLIDX ) \rm
$HTMLIDX
40 <TITLE>GROMACS $VER Online Reference </TITLE>
42 <LINK rel=stylesheet href="online/style.css" type="text/css">
43 <BODY text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#990000" alink="#FF0000">
45 <table WIDTH="98%" NOSAVE NOBORDER >
47 <TABLE WIDTH=400 NOBORDER>
49 <a href="http://www.gromacs.org/">
50 <img SRC="images/gmxlogo_small.jpg" BORDER=0 height=133 width=116></a></td>
51 <td ALIGN=LEFT VALIGN=TOP WIDTH=280>
58 <td ALIGN=RIGHT VALIGN=BOTTOM WIDTH="*" NOSAVE>
60 Thu 26 Aug 2010</B></td>
66 <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10>
68 <TD VALIGN=top WIDTH="25%">
71 foreach i
( $GENERAL )
72 set file = `echo $i | cut -d: -f1`
73 set desc
= `echo $i | cut -d: -f2 | sed 's/_/ /g'`
74 echo "<A HREF="\""$MANDIR/"$file".html"\"">"$desc"</a>" >> $HTMLIDX
75 echo "<br><br>" >> $HTMLIDX
78 <A HREF="gmxfaq.html">FAQ</a>
81 <TD VALIGN=top WIDTH=75%>
84 <A HREF="$MANDIR/options.html">Options</a>
87 foreach program
( $PROGRAMS )
88 if ( ( -x $GMXBINDIR/$program ) && ( $program != "my_dssp" ) && ( $program != "GMXRC" ) && ( $program != "completion.csh" ) && ( $program != "completion.zsh" ) && ( $program != "average" ) && ( $program != "completion.bash" ) && ( $program != "luck" ) ) then
89 echo "<br><a href="$MANDIR/$program.html
">$program</a>" >> $HTMLIDX
92 cat >> $HTMLIDX << EOD
98 <h3>Programs by Topic</h3>
101 awk -F '|' -v mandir
=$MANDIR '{\
103 if ( $1 == "HEAD" ) {\
105 printf("<A HREF=\"#HNR%d\">%s</A><br>\n",hnr,$2);\
108 }' $PROGFILE >> $HTMLIDX
109 echo "</multicol> " >> $HTMLIDX
110 awk -F '|' -v mandir
=$MANDIR '{\
112 if ( $1 == "HEAD" ) {\
114 printf("\n<A NAME=\"HNR%d\">\n",hnr);\
115 printf("<TABLE CELLSPACING=1>\n<TR><TD> \n");\
116 printf("<TR><TD COLSPAN=2><b>%s</b>\n",$2);\
117 } else if ( $1 == "END" ) {\
118 printf("</TABLE>\n");\
120 printf("<TR><TD><A HREF=\"%s/%s.html\">%s</A></TD><TD>%s</TD>\n",mandir,$1,$1,$2);\
123 }' $PROGFILE >> $HTMLIDX
124 cat >> $HTMLIDX <<EOD
128 <font size="-1"><a href="http://www.gromacs.org">http://www.gromacs.org</a></font><br>
133 echo "Generating html manual for GROMACS programs"
134 echo "-------------------------------------------"
138 foreach program
( $PROGRAMS )
139 if ( ( -x $GMXBINDIR/$program ) && ( $program != "my_dssp" ) && ( $program != "GMXRC" ) && ( $program != "completion.csh" ) && ( $program != "completion.zsh" ) && ( $program != "average" ) && ( $program != "completion.bash" ) && ( $program != "luck" ) ) then
142 $GMXBINDIR/$program -quiet -man html
>& /dev
/null