swerc

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

commit 1892cefb2567aa286ce69dd74246b17aa744b3c4
parent a52e4f3b4ac496709722f04de9beaa881821a41c
Author: Kris Maglione <jg@suckless.org>
Date:   Tue,  5 Jun 2007 01:54:01 +0200

Call rc with $rcargs for debugging.
Diffstat:
Mbin/controller.rc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -75,7 +75,7 @@ fn genbody { if ( test -f $body.md ) markdown.pl < $body.md if not if ( test -f $body.tpl ) - template.awk $body.tpl | rc + template.awk $body.tpl | rc $rcargs if not if ( ~ $body */blog/index */blog//index && ~ $#blogDirs 0 ) blogDirs = `{basename -d $body} if not if(~ $body */index && ~ $#blogDirs 0) { @@ -85,7 +85,7 @@ fn genbody { echo '</ul>' } if not if(~ $#blogDirs 0) - template.awk inc/404.tpl | rc + template.awk inc/404.tpl | rc $rcargs # Technically wrong. Will spit out blog entries after 404 for /blog/foo, for instance. if(! ~ $#blogDirs 0) { @@ -159,7 +159,7 @@ fn statpost { } fn template { - template.awk | rc | + template.awk | rc $rcargs | awk '{ buf = buf $0"\n" if(length(buf) > 8192) {