Call rc with $rcargs for debugging.

This commit is contained in:
Kris Maglione 2007-06-05 01:54:01 +02:00
parent 2546de5826
commit 973ba4b106

View file

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