add link to repository for *.conf files
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Nov 2009 15:43:01 +0000 (15:43 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Nov 2009 15:43:01 +0000 (15:43 +0000)
git-svn-id: file:///home/dpavlin/private/svn/sysadmin-cookbook-html@12 3e18072f-9615-4e06-9d3a-648eafba3f8d

bin/html.pl

index 0b0d8e2..701838d 100755 (executable)
@@ -43,7 +43,7 @@ sub file {
        $path =~ s{^$recepies/*(.*?[^/]+)$}{$1} || next;
        return ''
                . qq|<ul class=changes>$changes</ul>|
-               . ( $path =~ m{(\.sh|Makefile)$}i ? qq|<a class="path" href="$svn/view/recepies/$path">$path</a>| : '' )
+               . ( $path =~ m{(\.sh|Makefile|\.conf)$}i ? qq|<a class="path" href="$svn/view/recepies/$path">$path</a>| : '' )
                . qq|<pre class=content>$content</pre>|
                ;
 }