Magellan Linux

Diff of /tags/bootstrap-1_12/mage-bootstrap.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/bootstrap/scripts/mage-bootstrap.sh revision 744 by niro, Mon Jun 23 19:26:40 2008 UTC trunk/bootstrap/mage-bootstrap.sh revision 1486 by niro, Thu Aug 4 13:11:39 2011 UTC
# Line 8  MROOT="" Line 8  MROOT=""
8  ABORT_AFTER_STAGE1=false  ABORT_AFTER_STAGE1=false
9  MY_MAGEDIR=""  MY_MAGEDIR=""
10  MY_PKGDIR=""  MY_PKGDIR=""
11    MAGEUPDATE=true
12    MAGEUPDATETARBALL=false
13    
14  die()  die()
15  {  {
# Line 115  print_usage() Line 117  print_usage()
117   echo "Usage: $(basename $0) --opt arg ..."   echo "Usage: $(basename $0) --opt arg ..."
118   echo   echo
119   echo "Options:"   echo "Options:"
120   echo " --profile,    -p  --  select a profile (needed)"   echo " --profile,        -p  --  select a profile (needed)"
121   echo " --root,       -r  --  location to new root (needed)"   echo " --root,           -r  --  location to new root (needed)"
122   echo " --magerc,     -m  --  location of mage.rc (needed)"   echo " --magerc,         -m  --  location of mage.rc (needed)"
123   echo   echo
124   echo " --toolchain,  -t  --  select other toolchain than from profile"   echo " --toolchain,      -t  --  select other toolchain than from profile"
125   echo " --basesystem, -b  --  select other basesystem than from profile"   echo " --basesystem,     -b  --  select other basesystem than from profile"
126   echo " --stage1,     -s1 --  if set, abort after stage1 (toolchain)"   echo " --stage1,         -s1 --  if set, abort after stage1 (toolchain)"
127   echo " --help,       -h  --  prints this help"   echo " --update-tarball, -ut --  update via tarball not rsync"
128     echo " --no-update,      -u  --  do not update the mage tree"
129     echo " --help,           -h  --  prints this help"
130   echo   echo
131    
132   exit 1   exit 1
# Line 144  do Line 148  do
148   --root|-r) shift; MROOT="$1" ;;   --root|-r) shift; MROOT="$1" ;;
149   --stage1|-s1) ABORT_AFTER_STAGE1=true ;;   --stage1|-s1) ABORT_AFTER_STAGE1=true ;;
150   --magerc|-m) shift; MAGERC="$1" ;;   --magerc|-m) shift; MAGERC="$1" ;;
151     --update-tarball|-ut) MAGEUPDATETARBALL=true ;;
152     --no-update|-u) MAGEUPDATE=false ;;
153   --help|-h) print_usage ;;   --help|-h) print_usage ;;
154   '') shift;;   '') shift;;
155   *) echo "Unkown option '$1', use --help or -h to get more info."; exit 1 ;;   *) echo "Unkown option '$1', use --help or -h to get more info."; exit 1 ;;
# Line 185  mount -o bind ${MROOT}/${MY_PKGDIR} ${MY Line 191  mount -o bind ${MROOT}/${MY_PKGDIR} ${MY
191  ln -snf ${MY_MAGEDIR}/profiles/${PROFILE} /etc/mage-profile || die "link profile"  ln -snf ${MY_MAGEDIR}/profiles/${PROFILE} /etc/mage-profile || die "link profile"
192    
193  # update mage tree  # update mage tree
194  MAGERC="${MAGERC}" mage update || die "update mage-tree"  if [[ ${MAGEUPDATE} = true ]]
195    then
196     if [[ ${MAGEUPDATETARBALL} = true ]]
197     then
198     MAGERC="${MAGERC}" mage update-tarball || die "update mage-tree"
199     else
200     MAGERC="${MAGERC}" mage update || die "update mage-tree"
201     fi
202    fi
203    
204  # now get the toolchain and the basesystem layout file  # now get the toolchain and the basesystem layout file
205  # [ -z "${TOOLCHAIN}" ] && TOOLCHAIN="toolchain.defaults"  # [ -z "${TOOLCHAIN}" ] && TOOLCHAIN="toolchain.defaults"

Legend:
Removed from v.744  
changed lines
  Added in v.1486