autoload libraries

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-19 14:30:36 +02:00
parent f65c78deb6
commit d55c5b509f

View file

@ -25,6 +25,14 @@
: ${CDIST_COREDIR:=$CDIST_CONFIG/core}
: ${CDIST_LIBDIR:=$CDIST_CONFIG/lib}
set -e
# load libraries so every program has them available
__cdist_cur="$(pwd -P)"
cd "${CDIST_LIBDIR}"
for __cdist_lib in *; do
. "./${__cdist_lib}"
done
#echo $CDIST_CONFIG