Two other minor code formating changes for readability.

This commit is contained in:
Uriel 2009-01-05 05:48:23 +01:00
parent 2459e992ee
commit 218accf465

View file

@ -38,11 +38,7 @@ fn gensidebar {
ls -F $sitedir/./$req_paths_list >[2]/dev/null \ ls -F $sitedir/./$req_paths_list >[2]/dev/null \
| sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \ | sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \
| sort -u | awk -F/ ' | sort -u | awk -F/ '
function p(x, y, s) { function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
for(i=0; i < x-y; i+=1)
print s
}
{ {
d = "" d = ""
if(match($0, "/$")) if(match($0, "/$"))
@ -62,8 +58,7 @@ fn gensidebar {
else else
print "<li><a href=\"" path "\">&rsaquo; " bname "</a></li>" print "<li><a href=\"" path "\">&rsaquo; " bname "</a></li>"
} }
END { p(lNF, 0, "</ul>") } END { p(lNF, 0, "</ul>") }'
'
} }