Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage3.sh

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

revision 33 by niro, Thu Jan 6 02:57:12 2005 UTC revision 86 by niro, Wed Jun 1 16:11:01 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # version: 0.3.6-r9  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage3.sh,v 1.12 2005-06-01 16:11:01 niro Exp $
4    
5  ##configuration -> mage.rc  ##configuration -> mage.rc
6  #PKGDIR="/usr/src/packages"  #PKGDIR="/usr/src/packages"
# Line 11  PKGSUFFIX="mpk" Line 11  PKGSUFFIX="mpk"
11  MAGENAME="$2"  MAGENAME="$2"
12  #PKGNAME="`basename $2 .mage`"  #PKGNAME="`basename $2 .mage`"
13  MLIBDIR=/usr/lib/mage  MLIBDIR=/usr/lib/mage
14  MAGEVERSION=0.3.6-r9  MAGEVERSION=0.3.6-r16
15    
16  ## nur für tests -> normalerweise in /etc/rc.d/init.d/functions  ## nur für tests -> normalerweise in /etc/rc.d/init.d/functions
17  COLRED="\033[1;6m\033[31m"  COLRED="\033[1;6m\033[31m"
# Line 19  COLGREEN="\033[1;6m\033[32m" Line 19  COLGREEN="\033[1;6m\033[32m"
19  COLBLUE="\033[1;6m\033[34m"  COLBLUE="\033[1;6m\033[34m"
20  COLDEFAULT="\033[0m"  COLDEFAULT="\033[0m"
21    
22    # default path
23    PATH="${PATH}:${MLIBDIR}"
24    
25  ##functions  ##functions
26  if [ -f /etc/mage.rc ]  if [ -f /etc/mage.rc ]
# Line 450  case "$1" in Line 452  case "$1" in
452   download)   download)
453   choppkgname   choppkgname
454   getcategorie   getcategorie
455   get_highest_magefile   get_highest_magefile || exit 1
456   source ${MAGEFILE}   source ${MAGEFILE}
457   getpackages   getpackages
458   ;;   ;;
# Line 458  case "$1" in Line 460  case "$1" in
460   pretend)   pretend)
461   choppkgname   choppkgname
462   getcategorie   getcategorie
463   get_highest_magefile   get_highest_magefile || exit 1
464   ${MLIBDIR}/depwanderer.sh pretend ${MAGEFILE}   ${MLIBDIR}/depwanderer.sh pretend ${MAGEFILE}
465   #abort already installed   #abort already installed
466   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 472  case "$1" in Line 474  case "$1" in
474   srcpretend)   srcpretend)
475   choppkgname   choppkgname
476   getcategorie   getcategorie
477   get_highest_magefile   get_highest_magefile || exit 1
478   ${MLIBDIR}/depwanderer.sh srcpretend ${MAGEFILE}   ${MLIBDIR}/depwanderer.sh srcpretend ${MAGEFILE}
479   #abort already installed   #abort already installed
480   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 488  case "$1" in Line 490  case "$1" in
490   declare -i PROTECT_COUNT=0   declare -i PROTECT_COUNT=0
491   choppkgname   choppkgname
492   getcategorie   getcategorie
493   get_highest_magefile   get_highest_magefile || exit 1
494   ALLDEPS="$(/usr/lib/mage/depwanderer.sh install ${MAGEFILE})"   ALLDEPS="$(/usr/lib/mage/depwanderer.sh install ${MAGEFILE})"
495   #abort already installed   #abort already installed
496   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 513  case "$1" in Line 515  case "$1" in
515   unset preinstall   unset preinstall
516   unset postinstall   unset postinstall
517    
518     #then source an evtl new generated profile
519     [ -e /etc/profile ] && source /etc/profile
520    
521   #than install   #than install
522   MY_CAT_FIX="$(dirname ${i})"   MY_CAT_FIX="$(dirname ${i})"
523   CATEGORIE="$(basename ${MY_CAT_FIX%/*})"   CATEGORIE="$(basename ${MY_CAT_FIX%/*})"
# Line 526  case "$1" in Line 531  case "$1" in
531   declare -i PROTECT_COUNT=0   declare -i PROTECT_COUNT=0
532   choppkgname   choppkgname
533   getcategorie   getcategorie
534   get_highest_magefile   get_highest_magefile || exit 1
535   ALLDEPS="$(/usr/lib/mage/depwanderer.sh srcinstall ${MAGEFILE})"   ALLDEPS="$(/usr/lib/mage/depwanderer.sh srcinstall ${MAGEFILE})"
536   #abort already installed   #abort already installed
537   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 551  case "$1" in Line 556  case "$1" in
556   unset preinstall   unset preinstall
557   unset postinstall   unset postinstall
558    
559     #then source an evtl new generated profile
560     [ -e /etc/profile ] && source /etc/profile
561    
562   #than srcinstall   #than srcinstall
563   MY_CAT_FIX="$(dirname ${i})"   MY_CAT_FIX="$(dirname ${i})"
564   CATEGORIE="$(basename ${MY_CAT_FIX%/*})"   CATEGORIE="$(basename ${MY_CAT_FIX%/*})"

Legend:
Removed from v.33  
changed lines
  Added in v.86