swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit d6aff70c5102224da6f5a4bf6d857e1fc362f879
parent 2b342999ba79398ed691c832da50573d43bfca15
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Mon,  5 Jan 2009 05:46:37 +0100

Remove a debug tee(1) and split sidebar ls pipeline in three lines to make it more readable.
Diffstat:
Mbin/werc.rc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/werc.rc b/bin/werc.rc @@ -35,7 +35,9 @@ fn hide_paths { fn gensidebar { # Ignore stderr, last path element might be a file that doesn't exist (eg., foo for foo.md) # /./ to deal with p9p's ls failure to follow dir symlinks otherwise - ls -F $sitedir/./$req_paths_list >[2]/dev/null|sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean|sort -u|tee /tmp/d|awk -F/ ' + ls -F $sitedir/./$req_paths_list >[2]/dev/null \ + | sed 's!^'$sitedir'!!; '^$dirfilter^'/\/[^_.\/][^\/]*(\.(md|txt|html)|\/)$/!d; '^$dirclean \ + | sort -u | awk -F/ ' function p(x, y, s) { for(i=0; i < x-y; i+=1) print s