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 bb40483f80
commit 0ab4235b09

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,7 +273,8 @@ fn select_apps {
} }
fn app_handler { fn app_handler {
$app_body_handler if(! ~ $#app_body_handler 0)
$app_body_handler
} }