swerc

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

commit 4e28e9d23619a0614e89a7463e4ec5452c2d5278
parent d7797bbc9db648a78783bc69eaa6692730c74982
Author: uriel@engel.se.cat-v.org <unknown>
Date:   Sun, 28 Dec 2008 23:42:24 +0100

Two small simplifications to app handling. Specially merge _test and _setup functions into a single _init.
Diffstat:
Mbin/cgilib.rc | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/cgilib.rc b/bin/cgilib.rc @@ -265,7 +265,7 @@ fn select_apps { found=() for(a in $enabled_apps) { . ./apps/$a/app.rc - if($a^'_test') + if($a^'_init') found=yes } @@ -273,7 +273,8 @@ fn select_apps { } fn app_handler { - $app_body_handler + if(! ~ $#app_body_handler 0) + $app_body_handler }