Magellan Linux

Diff of /branches/mage-0_3_7-r6/mage/usr/lib/mage/mage3.functions.sh

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

revision 396, Sun Aug 28 19:23:57 2005 UTC revision 397 by niro, Mon Nov 20 11:54:46 2006 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # Magellan Linux Installer Functions (mage.functions.sh)  # Magellan Linux Installer Functions (mage.functions.sh)
3  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage3.functions.sh,v 1.17 2005-08-28 19:21:05 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage3.functions.sh,v 1.17.2.1 2006-11-20 11:54:46 niro Exp $
4    
5  mage_setup() {  mage_setup() {
6   install -d $INSTALLDB   install -d $INSTALLDB
# Line 1442  is_newer_mage_version_available() { Line 1442  is_newer_mage_version_available() {
1442   fi   fi
1443  }  }
1444    
1445    export_inherits()
1446    {
1447     local include="$1"
1448     shift
1449    
1450     while [ "$1" ]
1451     do
1452     local functions="$1"
1453    
1454     # sanity checks
1455     [ -z "${include}" ] && die "export_inherits(): \$include not given."
1456     [ -z "${functions}" ] && die "export_inherits(): \$functions not given."
1457    
1458     eval "${functions}() { ${include}_${functions} ; }"
1459    
1460     # debug
1461     [[ ${MAGEDEBUG} = on ]] && typeset -f "${functions}"
1462    
1463     shift
1464     done
1465    }

Legend:
Removed from v.396  
changed lines
  Added in v.397