swerc

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

commit 1c5c1045ac0216cd59851d87cd446de98176ed3e
parent 51507e82b13bbb6d2e350e62e951c3d056c63e14
Author: uriel@suckless.org <unknown>
Date:   Wed,  9 Jul 2008 00:55:45 +0200

Minnor style/debug improvements
Diffstat:
Mbin/controller.rc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/controller.rc b/bin/controller.rc @@ -125,7 +125,7 @@ fn genbody { if not if(~ $#blogDirs 0) { #echo 'Status: 404 Not Found\n\n' # should go before starting to print body template.awk inc/404.tpl | rc $rcargs - dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$HTTP_USER_AGENT + dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$"HTTP_USER_AGENT } if(! ~ $#blogDirs 0) { @@ -150,9 +150,9 @@ fn dprint { echo $* >[1=2] } -if(! ~ $#debug 0) { - echo $SERVER_NAME^'/'^$REQUEST_URI - >[1=2] -} +if(! ~ $#debug 0) + dprint $SERVER_NAME^'/'^$REQUEST_URI^' - '^$"HTTP_USER_AGENT + if (! ~ $args '') { #title=$args($#args)