1 |
#!/bin/sh |
#!/bin/sh |
2 |
# Magellan Linux Installer (mage.sh) |
# Magellan Linux Installer (mage.sh) |
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.11 2005-12-04 17:12:07 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.12 2005-12-26 23:13:42 niro Exp $ |
4 |
|
|
5 |
# default die function |
# default die function |
6 |
die() |
die() |
113 |
showversion |
showversion |
114 |
echo |
echo |
115 |
|
|
|
# before anything run mage_setup |
|
|
mage_setup || die "error in mage_setup()" |
|
|
|
|
116 |
# install method |
# install method |
117 |
METHOD="$1" |
METHOD="$1" |
118 |
|
|
139 |
BUILDDIR=${MROOT}/${BUILDDIR} |
BUILDDIR=${MROOT}/${BUILDDIR} |
140 |
fi |
fi |
141 |
|
|
142 |
|
# before anything run mage_setup |
143 |
|
mage_setup || die "error in mage_setup()" |
144 |
|
|
145 |
case ${METHOD} in |
case ${METHOD} in |
146 |
download) |
download) |
147 |
# first of all get the right pkg which going to be installed |
# first of all get the right pkg which going to be installed |