Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage4.functions.sh

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

revision 240 by niro, Sun Sep 11 19:47:08 2005 UTC revision 248 by niro, Tue Sep 27 14:38:01 2005 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/mage4.functions.sh,v 1.3 2005-09-11 19:47:08 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.4 2005-09-27 14:38:01 niro Exp $
4    
5  mage_setup()  mage_setup()
6  {  {
# Line 1960  get_value_from_magefile() Line 1960  get_value_from_magefile()
1960   local PKGTYPE   local PKGTYPE
1961   local preinstall   local preinstall
1962   local postinstall   local postinstall
1963     local preremove
1964     local postremove
1965    
1966   # sanity checks   # sanity checks
1967   [ -f ${magefile} ] && source ${magefile} || \   [ -f ${magefile} ] && source ${magefile} || \
# Line 1969  get_value_from_magefile() Line 1971  get_value_from_magefile()
1971   source ${magefile}   source ${magefile}
1972   eval value=\$$(echo ${var})   eval value=\$$(echo ${var})
1973   echo "${value}"   echo "${value}"
1974    
1975     unset preinstall
1976     unset postinstall
1977     unset preremove
1978     unset postremove
1979  }  }
1980    
1981  mage_install()  mage_install()
# Line 1985  mage_install() Line 1992  mage_install()
1992   local PKGTYPE   local PKGTYPE
1993   local preinstall   local preinstall
1994   local postinstall   local postinstall
1995     local preremove
1996     local postremove
1997    
1998   local pcat   local pcat
1999   local pname   local pname
# Line 2146  mage_install() Line 2155  mage_install()
2155  # echo -ne "${COLBLUE}${pcat}/${COLDEFAULT}"  # echo -ne "${COLBLUE}${pcat}/${COLDEFAULT}"
2156  # echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} "  # echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} "
2157   echo "successfully installed."   echo "successfully installed."
2158    
2159     unset preinstall
2160     unset postinstall
2161     unset preremove
2162     unset postremove
2163  }  }
2164    
2165  md5sum_packages()  md5sum_packages()
# Line 2304  mage_uninstall() Line 2318  mage_uninstall()
2318   local PKGTYPE   local PKGTYPE
2319   local preinstall   local preinstall
2320   local postinstall   local postinstall
2321     local preremove
2322     local postremove
2323    
2324   local pcat   local pcat
2325   local pname   local pname
# Line 2401  mage_uninstall() Line 2417  mage_uninstall()
2417  # echo -ne "${COLBLUE}${pcat}/${COLDEFAULT}"  # echo -ne "${COLBLUE}${pcat}/${COLDEFAULT}"
2418  # echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} "  # echo -ne "${COLGREEN}${pname}-${pver}-${pbuild}${COLDEFAULT} "
2419   echo "successfully removed."   echo "successfully removed."
2420    
2421     unset preinstall
2422     unset postinstall
2423     unset preremove
2424     unset postremove
2425  }  }
2426    
2427  show_etc_update_mesg() {  show_etc_update_mesg() {

Legend:
Removed from v.240  
changed lines
  Added in v.248