Magellan Linux

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

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

revision 2624 by niro, Wed Mar 5 08:06:37 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  [ -f @@SYSCONFDIR@@/mage.rc.global ] &&  \  source ${MLIBDIR}/common.functions.sh || exit 1
15   source @@SYSCONFDIR@@/mage.rc.global || \  source @@SYSCONFDIR@@/mage.rc.global || die "@@SYSCONFDIR@@/mage.rc.global missing"
16   die "@@SYSCONFDIR@@/mage.rc.global missing"  source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."
17    source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"
18  [ -f ${MAGERC} ] && source ${MAGERC} || \  source ${MLIBDIR}/smage2.functions.sh || die "smage functions missing"
  die "Your ${MAGERC} is missing. Aborting."  
   
 [ -f ${MLIBDIR}/mage4.functions.sh ] && \  
  source ${MLIBDIR}/mage4.functions.sh || \  
  die "mage functions missing"  
   
 [ -f ${MLIBDIR}/smage2.functions.sh ] && \  
  source ${MLIBDIR}/smage2.functions.sh || \  
  die "smage functions missing"  
19    
20  usage()  usage()
21  {  {

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