Magellan Linux

Diff of /smage/trunk/include/alx.sminc

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

revision 2792 by niro, Mon Aug 29 20:03:18 2011 UTC revision 3646 by niro, Fri Jul 13 15:07:38 2012 UTC
# Line 7  sminclude cleanutils mtools Line 7  sminclude cleanutils mtools
7  # include alx functions  # include alx functions
8  INHERITS="${INHERITS} alx"  INHERITS="${INHERITS} alx"
9    
 # all deprecated mage-targets  
 DEPRECATED_MAGE_TARGETS="alx_dev alx_livecd alx"  
   
 # variable to save pname  
 _PNAME="${PNAME}"  
   
 SPECIAL_VARS="${SPECIAL_VARS} DEPRECATED_MAGE_TARGETS REMOVE_DEPRECATED_MAGE_TARGETS _PNAME"  
 SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} alx_postinstall"  
   
 alx_postinstall()  
 {  
  local target  
   
  case ${REMOVE_DEPRECATED_MAGE_TARGETS} in  
  1|yes|true|TRUE)  
  for target in ${DEPRECATED_MAGE_TARGETS}  
  do  
  if [[ ! -z $(magequery -n ${_PNAME}-${target}) ]]  
  then  
  echo "removing deprecated mage-target '${_PNAME}-${target}'"  
  mage uninstall ${_PNAME}-${target} || die  
  fi  
  done  
  ;;  
  esac  
 }  
   
10  # injects files to given path (defaults to /usr/bin)  # injects files to given path (defaults to /usr/bin)
11  # mcinjectfile file {/path/to/dest}  # mcinjectfile file {/path/to/dest}
12  mcinjectfile()  mcinjectfile()
# Line 168  then Line 141  then
141   echo -e "${COLBLUE}*** ${COLGREEN}Using custom build info from ${SMAGENAME%/*}/alx/${PNAME}.custom${COLDEFAULT}"   echo -e "${COLBLUE}*** ${COLGREEN}Using custom build info from ${SMAGENAME%/*}/alx/${PNAME}.custom${COLDEFAULT}"
142   source ${SMAGENAME%/*}/alx/${PNAME}.custom   source ${SMAGENAME%/*}/alx/${PNAME}.custom
143  fi  fi
   
 export_inherits alx postinstall  

Legend:
Removed from v.2792  
changed lines
  Added in v.3646