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>
59 <B>VERSION $VER</B></td>
65 <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=10>
67 <TD VALIGN=top WIDTH="25%">
70 foreach i
( $GENERAL )
71 set file = `echo $i | cut -d: -f1`
72 set desc
= `echo $i | cut -d: -f2 | sed 's/_/ /g'`
73 echo "<A HREF="\""$MANDIR/"$file".html"\"">"$desc"</a>" >> $HTMLIDX
74 echo "<br><br>" >> $HTMLIDX
77 <A HREF="gmxfaq.html">FAQ</a>
80 <TD VALIGN=top WIDTH=75%>
83 <A HREF="$MANDIR/options.html">Options</a>
86 foreach program
( $PROGRAMS )
87 if ( ( -x $GMXBINDIR/$program ) && ( $program != "my_dssp" ) && ( $program != "GMXRC" ) && ( $program != "completion.csh" ) && ( $program != "completion.zsh" ) && ( $program != "average" ) && ( $program != "completion.bash" ) && ( $program != "luck" ) && ( $program != "demux.pl" ) && ( $program != "xplor2gmx.pl" ) ) then
88 echo "<br><a href="$MANDIR/$program.html
">$program</a>" >> $HTMLIDX
91 cat >> $HTMLIDX << EOD
97 <h3>Programs by Topic</h3>
100 awk -F '|' -v mandir
=$MANDIR '{\
102 if ( $1 == "HEAD" ) {\
104 printf("<A HREF=\"#HNR%d\">%s</A><br>\n",hnr,$2);\
107 }' $PROGFILE >> $HTMLIDX
108 echo "</multicol> " >> $HTMLIDX
109 awk -F '|' -v mandir
=$MANDIR '{\
111 if ( $1 == "HEAD" ) {\
113 printf("\n<A NAME=\"HNR%d\">\n",hnr);\
114 printf("<TABLE CELLSPACING=1>\n<TR><TD> \n");\
115 printf("<TR><TD COLSPAN=2><b>%s</b>\n",$2);\
116 } else if ( $1 == "END" ) {\
117 printf("</TABLE>\n");\
119 printf("<TR><TD><A HREF=\"%s/%s.html\">%s</A></TD><TD>%s</TD>\n",mandir,$1,$1,$2);\
122 }' $PROGFILE >> $HTMLIDX
123 cat >> $HTMLIDX <<EOD
127 <font size="-1"><a href="http://www.gromacs.org">http://www.gromacs.org</a></font><br>
132 echo "Generating html manual for GROMACS programs"
133 echo "-------------------------------------------"
137 setenv GMX_MAXBACKUP
-1
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" ) && ( $program != "demux.pl" ) ) then
142 $GMXBINDIR/$program -quiet -man html
>& /dev
/null