3 # This script makes an HTML page from a simple directory listing
8 <TITLE>Index of FreeRADIUS.org's RFC site</TITLE>
11 <H1>Index of FreeRADIUS.org's RFC site</H1>
13 List of <A HREF="attributes.html">RADIUS attributes</A>
19 # include the message, if any exists
21 if [ -e message ]; then
22 echo "<PRE>" >> index.html
23 cat .message >> index.html
24 echo "</PRE>" >> index.html
28 # for all of the text files, do this
30 cat >>index.html <<EOF
35 y=`echo $x | sed 's/rfc//;s/\.html//'`
36 echo "<A HREF=\"$x\">RFC $y</A>" >> index.html
38 echo "<A HREF=\"$x.gz\">(gzipped)</A>" >> index.html
40 y="attributes-rfc$y.html";
42 echo "<A HREF=\"$y\">(attributes)</A>" >> index.html
44 echo "<BR />" >> index.html
47 cat >>index.html <<EOF
52 # for all of the text files, do this
55 y=`echo $x | sed ';s/\.txt/.html/'`
57 echo "<A HREF=\"$x\">$x</A>" >> index.html
59 echo "<A HREF=\"$x.gz\">(gzipped)</A>" >> index.html
61 echo "<BR />" >> index.html
64 echo "</BODY></HTML>" >> index.html