projects
/
sysadmin-cookbook-html
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add link to repository for *.conf files
[sysadmin-cookbook-html]
/
bin
/
html.pl
diff --git
a/bin/html.pl
b/bin/html.pl
index
0b0d8e2
..
701838d
100755
(executable)
--- a/
bin/html.pl
+++ b/
bin/html.pl
@@
-43,7
+43,7
@@
sub file {
$path =~ s{^$recepies/*(.*?[^/]+)$}{$1} || next;
return ''
. qq|<ul class=changes>$changes</ul>|
$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>|
;
}
. qq|<pre class=content>$content</pre>|
;
}