Changes To Cookbook
Not logged in
@@ -54,10 +54,31 @@
 <font color="#a52a2a">17 </font>&nbsp;&nbsp;<font color="#a52a2a"><b>done</b></font><br>
 <font color="#a52a2a">18 </font><font color="#a52a2a"><b>else</b></font><br>
 <font color="#a52a2a">19 </font>&nbsp;&nbsp;sudo <font color="#a020f0">$0</font>&nbsp;<font color="#a020f0">$*</font><br>
 <font color="#a52a2a">20 </font><font color="#a52a2a"><b>fi</b></font><br>
 </font></nowiki>
+
+Here is a little perl script to put in your cgi-bin to list all the fossils you are publishing:
+
+<nowiki><pre>
+#!/usr/bin/perl -w
+my $CGI_BIN = '/Library/WebServer/CGI-Executables';
+my @files = `grep -l repository:  $CGI_BIN/* `;
+print &lt;&lt;EOM;
+Content-Type: text/html
+
+Fossils for this server
+&lt;ul>
+EOM
+
+for (@files) {
+  s{.*/}{};
+  next if /~$/;
+  print "&lt;li>&lt;a href='$_'>$_&lt;/a>&lt;/li>\n";
+}
+print "&lt;/ul>\n";</pre>
+</nowiki>
 
 The following <cite>apache2</cite> configuration can be used to run the root of a web site with fossil, but still allow other services / documents to be reached via specific URLs. Replace "code.autonomo.us" with your site's name and "dclark@pobox.com" with your email.
 
 <verbatim>
 NameVirtualHost *:80