Magellan Linux

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

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

revision 253 by niro, Tue Sep 27 14:36:57 2005 UTC revision 254 by niro, Mon Oct 3 13:48:06 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.7 2005-09-27 14:36:57 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.8 2005-10-03 13:48:06 niro Exp $
4    
5  # default die function  # default die function
6  die()  die()
# Line 148  case ${METHOD} in Line 148  case ${METHOD} in
148   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
149    
150   # source the highest magefile of this pkg   # source the highest magefile of this pkg
151   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
152    
153   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
154   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 175  case ${METHOD} in Line 175  case ${METHOD} in
175   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
176    
177   # source the highest magefile of this pkg   # source the highest magefile of this pkg
178   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
179    
180   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
181   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 201  case ${METHOD} in Line 201  case ${METHOD} in
201   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
202    
203   # source the highest magefile of this pkg   # source the highest magefile of this pkg
204   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
205    
206   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
207   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 234  case ${METHOD} in Line 234  case ${METHOD} in
234   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
235    
236   # source the highest magefile of this pkg   # source the highest magefile of this pkg
237   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
238    
239   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
240   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 273  case ${METHOD} in Line 273  case ${METHOD} in
273   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
274    
275   # source the highest magefile of this pkg   # source the highest magefile of this pkg
276   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
277    
278   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
279   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 360  case ${METHOD} in Line 360  case ${METHOD} in
360   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PCAT}" ] && die "Package '${MAGENAME}' does not exist."
361    
362   # source the highest magefile of this pkg   # source the highest magefile of this pkg
363   source $(get_highest_magefile ${PCAT} ${MAGENAME})   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
364    
365   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
366   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on

Legend:
Removed from v.253  
changed lines
  Added in v.254