Magellan Linux

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

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

smage/branches/alx-0_6_0/include/alx.sminc revision 1672 by niro, Sun Jan 23 00:17:42 2011 UTC smage/trunk/include/alx.sminc revision 3884 by niro, Mon Jul 23 09:59:24 2012 UTC
# Line 4  Line 4 
4  # some global includes  # some global includes
5  sminclude cleanutils mtools  sminclude cleanutils mtools
6    
7  # all deprecated mage-targets  # include alx functions
8  DEPRECATED_MAGE_TARGETS="alx_dev alx_livecd alx"  INHERITS="${INHERITS} alx"
   
 SPECIAL_VARS="${SPECIAL_VARS} DEPRECATED_MAGE_TARGETS REMOVE_DEPRECATED_MAGE_TARGETS"  
 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  
 }  
9    
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}
# Line 149  mconfigure() Line 128  mconfigure()
128   done < ${configurefile}   done < ${configurefile}
129   fi   fi
130    
131   alx_oldmconfigure --disable-nls ${myconf} $@ ${ALX_CONFIGURE_OPTS} || die   alx_oldmconfigure ${myconf} $@ ${ALX_CONFIGURE_OPTS} || die
132  }  }
133    
134  # get custom mcore functions  # get custom mcore functions
# Line 162  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 postinstall  

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