Magellan Linux

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

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

revision 30 by niro, Thu Jan 6 02:29:48 2005 UTC revision 36 by niro, Thu Jan 6 03:34:00 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-r8  # version: 0.3.6-r9
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-r8  MAGEVERSION=0.3.6-r9
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 450  case "$1" in Line 450  case "$1" in
450   download)   download)
451   choppkgname   choppkgname
452   getcategorie   getcategorie
453   get_highest_magefile   get_highest_magefile || exit 1
454   source ${MAGEFILE}   source ${MAGEFILE}
455   getpackages   getpackages
456   ;;   ;;
# Line 458  case "$1" in Line 458  case "$1" in
458   pretend)   pretend)
459   choppkgname   choppkgname
460   getcategorie   getcategorie
461   get_highest_magefile   get_highest_magefile || exit 1
462   ${MLIBDIR}/depwanderer.sh pretend ${MAGEFILE}   ${MLIBDIR}/depwanderer.sh pretend ${MAGEFILE}
463   #abort already installed   #abort already installed
464   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 472  case "$1" in Line 472  case "$1" in
472   srcpretend)   srcpretend)
473   choppkgname   choppkgname
474   getcategorie   getcategorie
475   get_highest_magefile   get_highest_magefile || exit 1
476   ${MLIBDIR}/depwanderer.sh srcpretend ${MAGEFILE}   ${MLIBDIR}/depwanderer.sh srcpretend ${MAGEFILE}
477   #abort already installed   #abort already installed
478   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 488  case "$1" in Line 488  case "$1" in
488   declare -i PROTECT_COUNT=0   declare -i PROTECT_COUNT=0
489   choppkgname   choppkgname
490   getcategorie   getcategorie
491   get_highest_magefile   get_highest_magefile || exit 1
492   ALLDEPS="$(/usr/lib/mage/depwanderer.sh install ${MAGEFILE})"   ALLDEPS="$(/usr/lib/mage/depwanderer.sh install ${MAGEFILE})"
493   #abort already installed   #abort already installed
494   if [ "$?" == "3" ]   if [ "$?" == "3" ]
# Line 526  case "$1" in Line 526  case "$1" in
526   declare -i PROTECT_COUNT=0   declare -i PROTECT_COUNT=0
527   choppkgname   choppkgname
528   getcategorie   getcategorie
529   get_highest_magefile   get_highest_magefile || exit 1
530   ALLDEPS="$(/usr/lib/mage/depwanderer.sh srcinstall ${MAGEFILE})"   ALLDEPS="$(/usr/lib/mage/depwanderer.sh srcinstall ${MAGEFILE})"
531   #abort already installed   #abort already installed
532   if [ "$?" == "3" ]   if [ "$?" == "3" ]

Legend:
Removed from v.30  
changed lines
  Added in v.36