From 973ba4b106fca81ea23e31cabad11dfa4baa690d Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 5 Jun 2007 01:54:01 +0200 Subject: [PATCH] Call rc with $rcargs for debugging. --- bin/controller.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index 951ef09..c8fde6c 100755 --- 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 '' } 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) {