73 |
[ -f /etc/mage.rc.global ] && source /etc/mage.rc.global || die "/etc/mage.rc.global missing" |
[ -f /etc/mage.rc.global ] && source /etc/mage.rc.global || die "/etc/mage.rc.global missing" |
74 |
[ -f ${MAGERC} ] && source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting." |
[ -f ${MAGERC} ] && source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting." |
75 |
[ -f ${MLIBDIR}/mage4.functions.sh ] && source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing" |
[ -f ${MLIBDIR}/mage4.functions.sh ] && source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing" |
76 |
|
[ -f ${MLIBDIR}/smage2.functions.sh ] && source ${MLIBDIR}/smage2.functions.sh || die "mage functions missing" |
77 |
|
|
78 |
# default variables |
# default variables |
79 |
PKGTARBALL="" |
PKGTARBALL="" |
92 |
done |
done |
93 |
|
|
94 |
SMAGEFILE="$1" |
SMAGEFILE="$1" |
95 |
|
[ -z ${SMAGEFILE} ] && die "No smage file given." |
96 |
|
[ -e ${SMAGEFILE} ] || die "Smage file '${SMAGEFILE}' does not exist." |
97 |
|
|
98 |
if [[ -n ${PKGTARBALL} ]] |
if [[ -n ${PKGTARBALL} ]] |
99 |
then |
then |
113 |
fi |
fi |
114 |
|
|
115 |
# get generic package information from smage file |
# get generic package information from smage file |
116 |
source ${SMAGEFILE} |
smagesource ${SMAGEFILE} |
117 |
|
|
118 |
# set the right meta-location |
# set the right meta-location |
119 |
[[ ! -d ${METADIR} ]] && install -d ${METADIR} |
[[ ! -d ${METADIR} ]] && install -d ${METADIR} |