1 |
#!/bin/bash |
#!/bin/bash |
2 |
# Magellan Linux Installer Functions (mage.functions.sh) |
# Magellan Linux Installer Functions (mage.functions.sh) |
3 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.25 2007-01-21 23:29:34 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.26 2007-01-22 00:24:14 niro Exp $ |
4 |
|
|
5 |
mage_setup() |
mage_setup() |
6 |
{ |
{ |
1106 |
local count_current |
local count_current |
1107 |
local count_total |
local count_total |
1108 |
|
|
1109 |
[ -z "${MIRRORS}" ] && die "You have no mirrors defined. Please edit your /etc/mage.rc." |
[ -z "${MIRRORS}" ] && die "You have no mirrors defined. Please edit your ${MAGERC}." |
1110 |
|
|
1111 |
# get count of total packages |
# get count of total packages |
1112 |
declare -i count_current=0 |
declare -i count_current=0 |
1181 |
{ |
{ |
1182 |
if [ -z "${RSYNC}" ] |
if [ -z "${RSYNC}" ] |
1183 |
then |
then |
1184 |
die "You have no rsync-mirrors defined. Please edit your /etc/mage.rc." |
die "You have no rsync-mirrors defined. Please edit your ${MAGERC}." |
1185 |
fi |
fi |
1186 |
|
|
1187 |
local i |
local i |
1240 |
if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ] |
if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ] |
1241 |
then |
then |
1242 |
#cuts ARCH and PBUILD |
#cuts ARCH and PBUILD |
1243 |
#ARCH comes from /etc/mage.rc |
#ARCH comes from ${MAGERC} |
1244 |
MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}-r*.::g") |
MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}-r*.::g") |
1245 |
|
|
1246 |
#cuts version number |
#cuts version number |