8 |
|
|
9 |
|
|
10 |
# set default user mage.rc |
# set default user mage.rc |
11 |
: ${MAGERC="/etc/mage.rc"} |
: ${MAGERC="@@SYSCONFDIR@@/mage.rc"} |
12 |
|
|
13 |
# export default C locale |
# export default C locale |
14 |
export LC_ALL=C |
export LC_ALL=C |
15 |
|
|
16 |
source /etc/mage.rc.global |
source @@SYSCONFDIR@@/mage.rc.global |
17 |
source ${MAGERC} |
source ${MAGERC} |
18 |
source ${MLIBDIR}/mage4.functions.sh |
source ${MLIBDIR}/mage4.functions.sh |
19 |
source ${MLIBDIR}/smage2.functions.sh |
source ${MLIBDIR}/smage2.functions.sh |
23 |
|
|
24 |
## setup ## |
## setup ## |
25 |
SMAGENAME="$1" |
SMAGENAME="$1" |
|
SMAGEVERSION="$(< ${MLIBDIR}/version)" |
|
26 |
|
|
27 |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
28 |
if [[ -n ${MROOT} ]] |
if [[ -n ${MROOT} ]] |