--- branches/mage-next/src/depwalker.in 2014/03/05 08:16:25 2626 +++ branches/mage-next/src/depwalker.in 2014/03/05 08:19:29 2628 @@ -2,13 +2,9 @@ # $Id$ # dependeny walker -decho() -{ - if [[ ${DEBUG} = 1 ]] - then - echo "DEBUG: $@" >&2 - fi -} +# set default variables +: ${MAGERC="@@SYSCONFDIR@@/mage.rc"} +: ${MLIBDIR="@@MAGELIBDIR@@"} # first of all include common functions source ${MLIBDIR}/common.functions.sh || exit 1 @@ -17,6 +13,14 @@ source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing" source ${MLIBDIR}/smage2.functions.sh || die "smage functions missing" +decho() +{ + if [[ ${DEBUG} = 1 ]] + then + echo "DEBUG: $@" >&2 + fi +} + usage() { echo