Magellan Linux

Diff of /branches/mage-next/src/mage.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2617 by niro, Tue Mar 4 15:31:43 2014 UTC revision 2618 by niro, Tue Mar 4 15:33:19 2014 UTC
# Line 2  Line 2 
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # $Id$  # $Id$
4    
5  # include all needed files  # set default variables
6  [ -f /etc/mage.rc.global ] &&  \  : ${MAGERC="@@SYSCONFDIR@@/mage.rc"}
7   source /etc/mage.rc.global || \  : ${MLIBDIR="@@MAGELIBDIR@@"}
  die "/etc/mage.rc.global missing"  
8    
9  [ -f ${MAGERC} ] && source ${MAGERC} || \  # first of all include common functions
10   die "Your ${MAGERC} is missing. Aborting."  source ${MLIBDIR}/common.functions.sh
11    source @@SYSCONFDIR@@/mage.rc.global
12  [ -f ${MLIBDIR}/mage4.functions.sh ] && \  source ${MAGERC}
13   source ${MLIBDIR}/mage4.functions.sh || \  source ${MLIBDIR}/mage4.functions.sh
  die "mage functions missing"  
14    
15  # export default path  # export default path
16  export PATH="${PATH}:${MLIBDIR}"  export PATH="${PATH}:${MLIBDIR}"

Legend:
Removed from v.2617  
changed lines
  Added in v.2618