Two small simplifications to app handling. Specially merge _test and _setup functions into a single _init.

This commit is contained in:
uriel 2008-12-28 23:42:24 +01:00
parent 1684a29bd2
commit 1e72e6499f

View File

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