Magellan Linux

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

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

revision 778 by niro, Sun Oct 5 10:33:36 2008 UTC revision 1560 by niro, Wed Dec 28 09:55:37 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Id$
3  #depwalker  # dependeny walker
 # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.11 2008-10-05 10:33:36 niro Exp $  
4    
5  # default die function  # default die function
6  die()  die()
# Line 22  die() Line 21  die()
21   source ${MLIBDIR}/mage4.functions.sh || \   source ${MLIBDIR}/mage4.functions.sh || \
22   die "mage functions missing"   die "mage functions missing"
23    
 # for tests only  
 # source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage.rc.global  
 # source /etc/mage.rc  
 # source /home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh  
 # MLIBDIR=/home/tjoke/alx-cvs/magellan-src/mage/usr/lib/mage  
   
 # not serious if missing, only needed for colors  
 [ -f /etc/init.d/functions ] && source /etc/init.d/functions  
   
 # disable colors if wanted  
 if [[ ${NOCOLORS} = true ]]  
 then  
  COLRED=""  
  COLGREEN=""  
  COLYELLOW=""  
  COLBLUE=""  
  COLMAGENTA=""  
  COLWHITE=""  
  COLDEFAULT=""  
 fi  
   
24  usage()  usage()
25  {  {
26   echo   echo
# Line 336  then Line 314  then
314   echo   echo
315   echo -e "${COLRED}Please consider to uninstall all of them first,${COLDEFAULT}"   echo -e "${COLRED}Please consider to uninstall all of them first,${COLDEFAULT}"
316   echo -e "${COLRED}because these packages does not exist in this distribution${COLDEFAULT}"   echo -e "${COLRED}because these packages does not exist in this distribution${COLDEFAULT}"
317   echo -e "${COLRED}and there will be no further updates or support for them.${COLDEFAULT}"   echo -e "${COLRED}anymore and there will be no further support for them.${COLDEFAULT}"
318   echo   echo
319   fi   fi
320  fi  fi

Legend:
Removed from v.778  
changed lines
  Added in v.1560