From 0ab4235b09f5865b1e44d45b33009ab88dd373b0 Mon Sep 17 00:00:00 2001 From: Uriel Date: Sun, 28 Dec 2008 23:42:24 +0100 Subject: [PATCH] Two small simplifications to app handling. Specially merge _test and _setup functions into a single _init. --- bin/cgilib.rc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/cgilib.rc b/bin/cgilib.rc index 79d32c3..1c5fb9f 100644 --- 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 }