2 |
# Magellan Linux Installer (mage.sh) |
# Magellan Linux Installer (mage.sh) |
3 |
# $Id$ |
# $Id$ |
4 |
|
|
|
# default die function |
|
|
die() |
|
|
{ |
|
|
xtitleclean |
|
|
mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT} |
|
|
echo -e ${COLRED}"$@"${COLDEFAULT} |
|
|
exit 1 |
|
|
} |
|
|
|
|
5 |
# include all needed files |
# include all needed files |
6 |
[ -f /etc/mage.rc.global ] && \ |
[ -f /etc/mage.rc.global ] && \ |
7 |
source /etc/mage.rc.global || \ |
source /etc/mage.rc.global || \ |
35 |
fi |
fi |
36 |
|
|
37 |
# default messages |
# default messages |
|
showversion() |
|
|
{ |
|
|
local MAGEVERSION="$(< ${MLIBDIR}/version)" |
|
|
|
|
|
echo -en "Magellan Package Manager v${MAGEVERSION} " |
|
|
echo -e "-- Niels Rogalla (niro@magellan-linux.de)" |
|
|
} |
|
|
|
|
38 |
print_usage() |
print_usage() |
39 |
{ |
{ |
40 |
#showversion |
#showversion |