Magellan Linux

Diff of /trunk/bootstrap/mage-bootstrap.sh

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

revision 1074 by niro, Tue Apr 27 10:09:47 2010 UTC revision 1075 by niro, Mon Jun 28 17:22:52 2010 UTC
# Line 9  ABORT_AFTER_STAGE1=false Line 9  ABORT_AFTER_STAGE1=false
9  MY_MAGEDIR=""  MY_MAGEDIR=""
10  MY_PKGDIR=""  MY_PKGDIR=""
11  MAGEUPDATE=true  MAGEUPDATE=true
12    MAGEUPDATETARBALL=false
13    
14  die()  die()
15  {  {
# Line 116  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 " --no-update,  -u  --  do not update the mage tree"   echo "  --update-tarball, -ut -- update via tarball not rsync"
128   echo " --help,       -h  --  prints this help"   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 146  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) shift; MAGEUPDATETARBALL=true ;;
152   --no-update|-u) shift; MAGEUPDATE=false ;;   --no-update|-u) shift; MAGEUPDATE=false ;;
153   --help|-h) print_usage ;;   --help|-h) print_usage ;;
154   '') shift;;   '') shift;;
# Line 190  ln -snf ${MY_MAGEDIR}/profiles/${PROFILE Line 193  ln -snf ${MY_MAGEDIR}/profiles/${PROFILE
193  # update mage tree  # update mage tree
194  if [[ ${MAGEUPDATE} = true ]]  if [[ ${MAGEUPDATE} = true ]]
195  then  then
196   MAGERC="${MAGERC}" mage update || die "update mage-tree"   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  fi
203    
204  # now get the toolchain and the basesystem layout file  # now get the toolchain and the basesystem layout file

Legend:
Removed from v.1074  
changed lines
  Added in v.1075