Magellan Linux

Diff of /trunk/mage/usr/lib/mage/depwalker.sh

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

revision 234 by niro, Fri Sep 9 17:50:03 2005 UTC revision 235 by niro, Sat Sep 10 13:34:56 2005 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  #depwalker  #depwalker
4  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.2 2005-09-09 17:50:03 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.3 2005-09-10 13:34:56 niro Exp $
5    
6  # default die function  # default die function
7  die()  die()
# Line 11  die() Line 11  die()
11  }  }
12    
13  # include all needed files  # include all needed files
14  [ -f ${MLIBDIR}/conf/mage.rc.global ] &&  \  [ -f /etc/mage.rc.global ] &&  \
15   source ${MLIBDIR}/conf/mage.rc.global || \   source /etc/mage.rc.global || \
16   die "${MLIBDIR}/conf/mage.rc.global missing"   die "/etc/mage.rc.global missing"
17    
18  [ -f /etc/mage.rc ] && source /etc/mage.rc || \  [ -f /etc/mage.rc ] && source /etc/mage.rc || \
19   die "Your /etc/mage.rc is missing. Aborting."   die "Your /etc/mage.rc is missing. Aborting."
20    
21  [ -f ${MLIBDIR}/mage.functions.sh ] && \  [ -f ${MLIBDIR}/mage4.functions.sh ] && \
22   source ${MLIBDIR}/mage.functions.sh || \   source ${MLIBDIR}/mage4.functions.sh || \
23   die "mage functions missing"   die "mage functions missing"
24    
25  # for tests only  # for tests only

Legend:
Removed from v.234  
changed lines
  Added in v.235