Magellan Linux

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

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

revision 369 by niro, Mon Dec 26 23:13:42 2005 UTC revision 370 by niro, Thu Apr 27 11:52:59 2006 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.12 2005-12-26 23:13:42 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.13 2006-04-27 11:52:59 niro Exp $
4    
5  # default die function  # default die function
6  die()  die()
# Line 153  case ${METHOD} in Line 153  case ${METHOD} in
153   # source the highest magefile of this pkg   # source the highest magefile of this pkg
154   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
155    
156     # package does not exists
157     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
158    
159   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
160   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
161   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"
# Line 180  case ${METHOD} in Line 183  case ${METHOD} in
183   # source the highest magefile of this pkg   # source the highest magefile of this pkg
184   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
185    
186     # package does not exists
187     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
188    
189   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
190   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
191   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"
# Line 206  case ${METHOD} in Line 212  case ${METHOD} in
212   # source the highest magefile of this pkg   # source the highest magefile of this pkg
213   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
214    
215     # package does not exists
216     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
217    
218   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
219   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
220   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"
# Line 239  case ${METHOD} in Line 248  case ${METHOD} in
248   # source the highest magefile of this pkg   # source the highest magefile of this pkg
249   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
250    
251     # package does not exists
252     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
253    
254   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
255   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
256   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"
# Line 278  case ${METHOD} in Line 290  case ${METHOD} in
290   # source the highest magefile of this pkg   # source the highest magefile of this pkg
291   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
292    
293     # package does not exists
294     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
295    
296   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
297   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
298   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"
# Line 365  case ${METHOD} in Line 380  case ${METHOD} in
380   # source the highest magefile of this pkg   # source the highest magefile of this pkg
381   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
382    
383     # package does not exists
384     [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."
385    
386   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
387   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
388   PNAME="$(pkgname2pname ${PKGNAME})"   PNAME="$(pkgname2pname ${PKGNAME})"

Legend:
Removed from v.369  
changed lines
  Added in v.370