--- trunk/mage-buildroot/mage-buildroot.sh 2006/06/12 16:22:01 382 +++ trunk/mage-buildroot/mage-buildroot.sh 2006/06/13 16:47:54 383 @@ -1,5 +1,5 @@ #!/bin/bash -# $Header: /home/cvsd/magellan-cvs/magellan-src/mage-buildroot/mage-buildroot.sh,v 1.2 2006-01-26 19:58:06 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/mage-buildroot/mage-buildroot.sh,v 1.3 2006-06-13 16:47:54 niro Exp $ # # mage buildroot # creates a buildroot to compile programms @@ -148,12 +148,15 @@ fi # get all dependencies of this package +echo +echo -n "Calculating dependencies ... " ALLDEPS="$(${MLIBDIR}/depwalker.sh \ --method srcinstall \ --pcat ${PCAT} \ --pname ${PNAME} \ --pver ${PVER} \ --pbuild ${PBUILD})" +echo "done" # remove TARGET_PKG from list SRC_INSTALL_DEPS="$(get_highest_magefile ${PCAT} ${TARGET_PKG})" @@ -168,8 +171,16 @@ echo "----------------------" echo echo "---- dependencies ----" -echo "SRC_INSTALL_DEPS: ${SRC_INSTALL_DEPS}" -echo "INSTALL_DEPS: ${INSTALL_DEPS}" +echo "SRC_INSTALL_DEPS:" +for i in ${SRC_INSTALL_DEPS} +do + echo " * ${i}" +done +echo "INSTALL_DEPS:" +for i in ${INSTALL_DEPS} +do + echo " * ${i}" +done echo "----------------------" #read @@ -187,8 +198,10 @@ install_packages --src-install ${SRC_INSTALL_DEPS} || die "src-installing packages" # done +[[ ! -d /BUILDED ]] && install -d /BUILDED +mv ${PKGDIR}/${PNAME}-${PVER}-${ARCH}-${PBUILD}.mpk /BUILDED || die "pkg move" echo -e "Package ${COLGREEN}${PCAT}/${PNAME}-${PVER}-${PBUILD}${COLDEFAULT} successfully builded." -echo "You will find this in ${FAKE_MROOT}/${PKGDIR}." +echo "You will find this in ${FAKE_MROOT}/BUILDED." EOF # run this stuff