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 2736 by niro, Tue Aug 12 15:23:54 2014 UTC
# Line 2  Line 2 
2  # $Id$  # $Id$
3  # dependeny walker  # dependeny walker
4    
5  # default die function  # set default variables
6  die()  : ${MAGERC="@@SYSCONFDIR@@/mage.rc"}
7  {  : ${MLIBDIR="@@MAGELIBDIR@@"}
8   echo ${COLRED}"$@"${COLDEFAULT}  
9   exit 1  # first of all include common functions
10  }  source ${MLIBDIR}/common.functions.sh || exit 1
11    source @@SYSCONFDIR@@/mage.rc.global || die "@@SYSCONFDIR@@/mage.rc.global missing"
12    source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."
13    source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"
14    source ${MLIBDIR}/smage2.functions.sh || die "smage functions missing"
15    
16  decho()  decho()
17  {  {
# Line 17  decho() Line 21  decho()
21   fi   fi
22  }  }
23    
 # include all needed files  
 source @@SYSCONFDIR@@/mage.rc.global || die "@@SYSCONFDIR@@/mage.rc.global missing"  
 source ${MAGERC} || die "Your ${MAGERC} is missing. Aborting."  
 source ${MLIBDIR}/mage4.functions.sh || die "mage functions missing"  
 source ${MLIBDIR}/smage2.functions.sh || die "smage functions missing"  
   
24  usage()  usage()
25  {  {
26   echo   echo
# Line 232  depwalking() Line 230  depwalking()
230   ### check if the dependency is already installed ###   ### check if the dependency is already installed ###
231   if [ ! -d ${MROOT}${INSTALLDB}/${PCAT}/${PNAME}-${PVER}-${PBUILD} ]   if [ ! -d ${MROOT}${INSTALLDB}/${PCAT}/${PNAME}-${PVER}-${PBUILD} ]
232   then   then
  depwalking ${HIGHEST_DEPFILE}  
233   ALLDEPS="${ALLDEPS} ${HIGHEST_DEPFILE}"   ALLDEPS="${ALLDEPS} ${HIGHEST_DEPFILE}"
234   decho "added '${HIGHEST_DEPFILE}' to ALLDEPS"   decho "added '${HIGHEST_DEPFILE}' to ALLDEPS"
235     depwalking ${HIGHEST_DEPFILE}
236   fi   fi
237   fi   fi
238   done << EOF   done << EOF

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