7 |
# TODO: record dynlib, gz | xz database |
# TODO: record dynlib, gz | xz database |
8 |
|
|
9 |
|
|
10 |
# set default user mage.rc |
# set default variables |
11 |
: ${MAGERC="/etc/mage.rc"} |
: ${MAGERC="@@SYSCONFDIR@@/mage.rc"} |
12 |
|
: ${MLIBDIR="@@MAGELIBDIR@@"} |
13 |
|
|
14 |
# export default C locale |
# export default C locale |
15 |
export LC_ALL=C |
export LC_ALL=C |
16 |
|
|
17 |
source /etc/mage.rc.global |
# first of all include common functions |
18 |
|
source ${MLIBDIR}/common.functions.sh |
19 |
|
source @@SYSCONFDIR@@/mage.rc.global |
20 |
source ${MAGERC} |
source ${MAGERC} |
21 |
source ${MLIBDIR}/mage4.functions.sh |
source ${MLIBDIR}/mage4.functions.sh |
22 |
source ${MLIBDIR}/smage2.functions.sh |
source ${MLIBDIR}/smage2.functions.sh |
26 |
|
|
27 |
## setup ## |
## setup ## |
28 |
SMAGENAME="$1" |
SMAGENAME="$1" |
|
SMAGEVERSION="$(< ${MLIBDIR}/version)" |
|
29 |
|
|
30 |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
# expand PKGDIR, BUILDDIR and BINDIR with MROOT |
31 |
if [[ -n ${MROOT} ]] |
if [[ -n ${MROOT} ]] |