On 5 June 2013 10:51, Kevin Martin - ke...@khn.org.uk
<fossil.nrb.4c8eca578b.kev82#khn.org...@ob.0sg.net> wrote:
>
> kev82@meanmachine:/var/www/fossilserver/public$ cat index.cgi
> #!/bin/sh
> echo 'Content-type: text/html'
> echo
> echo '<html>'
> echo '<head><title>Fossils List</title></head>'
> echo '<body>'
> echo '<h1>Fossils List</h1>'
> echo '<ul>'
> ls /var/www/fossilserver/public/fossils | sed 's%\.fossil%%' | awk '{print 
> "<li><a href=\"fossils.cgi/" $1 "\">" $1 "</a></li>"}'
> echo '</ul>'
> echo '</body>'
> echo '</html>'

For me that is an excellent and simple idea I have copied and works.
"Gopher" style ;)

Perhaps it is unnecessary, but in case a repo link is bookmarked by a
user and the repo is moved or deleted, I also added to fossils.cgi:
notfound: ../index.cgi


BR/Nigel

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to