Magellan Linux

Diff of /branches/mage-next/src/mage.in

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

revision 2605 by niro, Tue Mar 4 14:45:26 2014 UTC revision 2617 by niro, Tue Mar 4 15:31:43 2014 UTC
# Line 2  Line 2 
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # $Id$  # $Id$
4    
 # default die function  
 die()  
 {  
  xtitleclean  
  mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT}  
  echo -e ${COLRED}"$@"${COLDEFAULT}  
  exit 1  
 }  
   
5  # include all needed files  # include all needed files
6  [ -f /etc/mage.rc.global ] &&  \  [ -f /etc/mage.rc.global ] &&  \
7   source /etc/mage.rc.global || \   source /etc/mage.rc.global || \
# Line 44  then Line 35  then
35  fi  fi
36    
37  # default messages  # default messages
 showversion()  
 {  
  local MAGEVERSION="$(< ${MLIBDIR}/version)"  
   
  echo -en "Magellan Package Manager v${MAGEVERSION} "  
  echo -e  "-- Niels Rogalla (niro@magellan-linux.de)"  
 }  
   
38  print_usage()  print_usage()
39  {  {
40   #showversion   #showversion

Legend:
Removed from v.2605  
changed lines
  Added in v.2617