Some links point to directories assuming there will be a directory listing, which I don't think is even true on Sourceforge any more.
15 lines
196 B
Bash
15 lines
196 B
Bash
#!/bin/bash
|
|
|
|
mkhtml() {
|
|
echo "<html><body><ul>"
|
|
for d in *; do
|
|
if [ "$d" != index.html ]; then
|
|
echo "<li><a href='$d'>$d</a>"
|
|
fi
|
|
done
|
|
echo "</ul></body></html>"
|
|
}
|
|
|
|
mkhtml > index.html
|
|
|