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.26 2007-01-22 00:24:14 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.27 2007-03-19 18:05:20 niro Exp $ |
4 |
|
|
5 |
mage_setup() |
mage_setup() |
6 |
{ |
{ |
1708 |
{ |
{ |
1709 |
local i |
local i |
1710 |
|
|
1711 |
if [[ -n $@ ]] |
if [[ -n $* ]] |
1712 |
then |
then |
1713 |
for i in $@ |
for i in $* |
1714 |
do |
do |
1715 |
[[ ${MAGEDEBUG} = on ]] && \ |
[[ ${MAGEDEBUG} = on ]] && \ |
1716 |
echo "--- Including ${MAGEDIR}/include/${i}.minc" |
echo "--- Including ${MAGEDIR}/include/${i}.minc" |
1724 |
{ |
{ |
1725 |
local i |
local i |
1726 |
|
|
1727 |
if [ -n "$@" ] |
if [[ -n $* ]] |
1728 |
then |
then |
1729 |
for i in $@ |
for i in $* |
1730 |
do |
do |
1731 |
echo "--- Including ${SMAGESCRIPTSDIR}/include/${i}.sminc" |
echo "--- Including ${SMAGESCRIPTSDIR}/include/${i}.sminc" |
1732 |
source ${SMAGESCRIPTSDIR}/include/${i}.sminc |
source ${SMAGESCRIPTSDIR}/include/${i}.sminc |