Magellan Linux

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

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

revision 1672 by niro, Sun Jan 23 00:17:42 2011 UTC revision 2076 by niro, Wed May 11 21:40:00 2011 UTC
# Line 4  Line 4 
4  # some global includes  # some global includes
5  sminclude cleanutils mtools  sminclude cleanutils mtools
6    
7    # include alx functions
8    INHERITS="${INHERITS} alx"
9    
10  # all deprecated mage-targets  # all deprecated mage-targets
11  DEPRECATED_MAGE_TARGETS="alx_dev alx_livecd alx"  DEPRECATED_MAGE_TARGETS="alx_dev alx_livecd alx"
12    
13  SPECIAL_VARS="${SPECIAL_VARS} DEPRECATED_MAGE_TARGETS REMOVE_DEPRECATED_MAGE_TARGETS"  # variable to save pname
14    _PNAME="${PNAME}"
15    
16    SPECIAL_VARS="${SPECIAL_VARS} DEPRECATED_MAGE_TARGETS REMOVE_DEPRECATED_MAGE_TARGETS _PNAME"
17  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} alx_postinstall"  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} alx_postinstall"
18    
19  alx_postinstall()  alx_postinstall()
# Line 18  alx_postinstall() Line 24  alx_postinstall()
24   1|yes|true|TRUE)   1|yes|true|TRUE)
25   for target in ${DEPRECATED_MAGE_TARGETS}   for target in ${DEPRECATED_MAGE_TARGETS}
26   do   do
27   if [[ ! -z $(magequery -n ${PNAME}-${target}) ]]   if [[ ! -z $(magequery -n ${_PNAME}-${target}) ]]
28   then   then
29   echo "removing deprecated mage-target '${PNAME}-${target}'"   echo "removing deprecated mage-target '${_PNAME}-${target}'"
30   mage uninstall ${PNAME}-${target} || die   mage uninstall ${_PNAME}-${target} || die
31   fi   fi
32   done   done
33   ;;   ;;
# Line 163  then Line 169  then
169   source ${SMAGENAME%/*}/alx/${PNAME}.custom   source ${SMAGENAME%/*}/alx/${PNAME}.custom
170  fi  fi
171    
172  export_inherits postinstall  export_inherits alx postinstall

Legend:
Removed from v.1672  
changed lines
  Added in v.2076