module loader implemented

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-20 02:30:16 +02:00
commit e054d0c22c
3 changed files with 35 additions and 2 deletions

View file

@ -25,6 +25,7 @@
: ${CDIST_COREDIR:=$CDIST_CONFIG/core}
: ${CDIST_LIBDIR:=$CDIST_CONFIG/lib}
: ${CDIST_HOSTS:=$CDIST_CONFIG/hosts}
: ${CDIST_MODULES:=$CDIST_CONFIG/modules}
set -e
@ -34,6 +35,14 @@ cd "${CDIST_LIBDIR}"
for __cdist_lib in *; do
. "./${__cdist_lib}"
done
# load modules
cd "${CDIST_MODULES}"
for __cdist_mod in *; do
. "./${__cdist_mod}/manifest"
done
set +e
#echo $CDIST_CONFIG