Magellan Linux

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

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

revision 2625 by niro, Wed Mar 5 08:15:28 2014 UTC revision 2626 by niro, Wed Mar 5 08:16:25 2014 UTC
# Line 2  Line 2 
2  # $Id$  # $Id$
3  # dependeny walker  # dependeny walker
4    
 # default die function  
 die()  
 {  
  echo ${COLRED}"$@"${COLDEFAULT}  
  exit 1  
 }  
   
5  decho()  decho()
6  {  {
7   if [[ ${DEBUG} = 1 ]]   if [[ ${DEBUG} = 1 ]]
# Line 17  decho() Line 10  decho()
10   fi   fi
11  }  }
12    
13  # include all needed files  # first of all include common functions
14    source ${MLIBDIR}/common.functions.sh || exit 1
15  source @@SYSCONFDIR@@/mage.rc.global || die "@@SYSCONFDIR@@/mage.rc.global missing"  source @@SYSCONFDIR@@/mage.rc.global || die "@@SYSCONFDIR@@/mage.rc.global missing"
16  source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."  source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."
17  source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"  source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"

Legend:
Removed from v.2625  
changed lines
  Added in v.2626