--- trunk/bootstrap/mage-bootstrap.sh 2010/04/26 18:56:32 976 +++ trunk/bootstrap/mage-bootstrap.sh 2010/04/27 10:09:47 977 @@ -8,6 +8,7 @@ ABORT_AFTER_STAGE1=false MY_MAGEDIR="" MY_PKGDIR="" +MAGEUPDATE=true die() { @@ -122,6 +123,7 @@ echo " --toolchain, -t -- select other toolchain than from profile" echo " --basesystem, -b -- select other basesystem than from profile" echo " --stage1, -s1 -- if set, abort after stage1 (toolchain)" + echo " --no-update, -u -- do not update the mage tree" echo " --help, -h -- prints this help" echo @@ -144,6 +146,7 @@ --root|-r) shift; MROOT="$1" ;; --stage1|-s1) ABORT_AFTER_STAGE1=true ;; --magerc|-m) shift; MAGERC="$1" ;; + --no-update|-u) shift; MAGEUPDATE=false ;; --help|-h) print_usage ;; '') shift;; *) echo "Unkown option '$1', use --help or -h to get more info."; exit 1 ;; @@ -185,7 +188,10 @@ ln -snf ${MY_MAGEDIR}/profiles/${PROFILE} /etc/mage-profile || die "link profile" # update mage tree -MAGERC="${MAGERC}" mage update || die "update mage-tree" +if [[ ${MAGEUPDATE} = true ]] +then + MAGERC="${MAGERC}" mage update || die "update mage-tree" +fi # now get the toolchain and the basesystem layout file # [ -z "${TOOLCHAIN}" ] && TOOLCHAIN="toolchain.defaults"