Magellan Linux

Diff of /branches/mage-next/src/mage4.functions.sh.in

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

trunk/mage/usr/lib/mage/mage4.functions.sh revision 2372 by niro, Mon Jan 6 14:17:37 2014 UTC branches/mage-next/src/mage4.functions.sh.in revision 2720 by niro, Tue Jul 22 14:17:53 2014 UTC
# Line 2  Line 2 
2  # Magellan Linux Installer Functions (mage.functions.sh)  # Magellan Linux Installer Functions (mage.functions.sh)
3  # $Id$  # $Id$
4    
 COLRED="\033[1;6m\033[31m"  
 COLGREEN="\033[1;6m\033[32m"  
 COLYELLOW="\033[1;6m\033[33m"  
 COLBLUE="\033[1;6m\033[34m"  
 COLMAGENTA="\033[1;6m\033[35m"  
 COLWHITE="\033[1;6m\033[37m"  
 COLGRAY="\033[0;6m\033[37m"  
 COLBOLD="\033[1m"  
 COLDEFAULT="\033[0m"  
   
 if [[ ${NOCOLORS} = true ]]  
 then  
  COLRED=""  
  COLGREEN=""  
  COLYELLOW=""  
  COLBLUE=""  
  COLMAGENTA=""  
  COLWHITE=""  
  COLGRAY=""  
  COLBOLD=""  
  COLDEFAULT=""  
 fi  
   
5  mage_setup()  mage_setup()
6  {  {
7   [ ! -d ${MROOT}${INSTALLDB} ] && \   [ ! -d ${MROOT}${INSTALLDB} ] && \
# Line 185  unpack_packages() Line 162  unpack_packages()
162   if [ ${count_total} -gt 1 ]; then echo; fi   if [ ${count_total} -gt 1 ]; then echo; fi
163  }  }
164    
   
165  # fix_mtime path/to/$mtime/reffile $pathto/file  # fix_mtime path/to/$mtime/reffile $pathto/file
166  # creates a given reference file and fixes given file  # creates a given reference file and fixes given file
167  # returns new mtime  # returns new mtime
# Line 1699  cleanpkg() Line 1675  cleanpkg()
1675   fi   fi
1676  }  }
1677    
 xtitle()  
 {  
  if [[ ${TERM} = xterm ]]  
  then  
  echo -ne "\033]0;Mage: $1\007"  
  fi  
  return 0  
 }  
   
   
 xtitleclean()  
 {  
  if [[ ${TERM} = xterm ]]  
  then  
  echo -ne "\033]0;\007"  
  fi  
  return 0  
 }  
   
   
1678  # unused?  # unused?
1679  #  #
1680  # # cuts full pathnames or versionized names down to basename  # # cuts full pathnames or versionized names down to basename
# Line 2286  is_newer_mage_version_available() Line 2242  is_newer_mage_version_available()
2242   fi   fi
2243  }  }
2244    
   
2245  # returns pname from pkgname  # returns pname from pkgname
2246  # pkgname2pname $PKGNAME  # pkgname2pname $PKGNAME
2247  pkgname2pname()  pkgname2pname()
# Line 2771  mage_install() Line 2726  mage_install()
2726   then   then
2727   echo -ne "${COLBLUE} *** ${COLDEFAULT}"   echo -ne "${COLBLUE} *** ${COLDEFAULT}"
2728   echo -n "rebuilding environment ... "   echo -n "rebuilding environment ... "
2729   ${MLIBDIR}/env-rebuild.sh > /dev/null && \   ${MLIBDIR}/env-rebuild > /dev/null && \
2730   echo "done." || echo "failure."   echo "done." || echo "failure."
2731   unset MAGE_ENV_REBUILD   unset MAGE_ENV_REBUILD
2732   fi   fi
# Line 3036  mage_uninstall() Line 2991  mage_uninstall()
2991   then   then
2992   echo -ne "${COLBLUE} *** ${COLDEFAULT}"   echo -ne "${COLBLUE} *** ${COLDEFAULT}"
2993   echo -n "rebuilding environment ... "   echo -n "rebuilding environment ... "
2994   ${MLIBDIR}/env-rebuild.sh > /dev/null && \   ${MLIBDIR}/env-rebuild > /dev/null && \
2995   echo "done." || echo "failure."   echo "done." || echo "failure."
2996   unset MAGE_ENV_REBUILD   unset MAGE_ENV_REBUILD
2997   fi   fi
# Line 3452  known_mage_feature() Line 3407  known_mage_feature()
3407   kernelsrcunpack|!kernelsrcunpack) retval=0 ;;   kernelsrcunpack|!kernelsrcunpack) retval=0 ;;
3408   libtool|!libtool) retval=0 ;;   libtool|!libtool) retval=0 ;;
3409   linuxsymlink|!linuxsymlink) retval=0 ;;   linuxsymlink|!linuxsymlink) retval=0 ;;
3410     multilib|!multilib) reval=0 ;;
3411   pkgbuild|!pkgbuild) retval=0 ;;   pkgbuild|!pkgbuild) retval=0 ;;
3412   pkgdistrotag|!pkgdistrotag) retval=0 ;;   pkgdistrotag|!pkgdistrotag) retval=0 ;;
3413     pkgmetadata|!pkgmetadata) retval=0 ;;
3414   purge|!purge) retval=0 ;;   purge|!purge) retval=0 ;;
3415   qalint|!qalint) retval=0 ;;   qalint|!qalint) retval=0 ;;
3416   regentree|!regentree) retval=0 ;;   regentree|!regentree) retval=0 ;;
# Line 3524  msetfeature() Line 3481  msetfeature()
3481   MAGE_FEATURES_CURRENT=( ${MAGE_FEATURES_CURRENT[*]} "${feature}" )   MAGE_FEATURES_CURRENT=( ${MAGE_FEATURES_CURRENT[*]} "${feature}" )
3482   fi   fi
3483    
3484   export MAGE_FEATURE_CURRENT   export MAGE_FEATURES_CURRENT
3485   done   done
3486  }  }
3487    

Legend:
Removed from v.2372  
changed lines
  Added in v.2720