Magellan Linux

Diff of /trunk/opengl-update/opengl-update.sh

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

revision 623 by niro, Wed Nov 14 18:20:10 2007 UTC revision 624 by niro, Wed Nov 14 18:45:26 2007 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # Copyright 1999-2004 Gentoo Foundation  # Copyright 1999-2004 Gentoo Foundation
3  # Distributed under the terms of the GNU General Public License v2  # Distributed under the terms of the GNU General Public License v2
4  # $Header: /home/cvsd/magellan-cvs/magellan-src/opengl-update/opengl-update.sh,v 1.6 2007-11-14 18:20:10 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/opengl-update/opengl-update.sh,v 1.7 2007-11-14 18:45:26 niro Exp $
5  # Author:  Martin Schlemmer <azarah@gentoo.org>  # Author:  Martin Schlemmer <azarah@gentoo.org>
6  # Further modifications by Donnie Berkholz <spyderous@gentoo.org>  # Further modifications by Donnie Berkholz <spyderous@gentoo.org>
7  # Further modifications based off submissions to bug #54984 <cyfred@gentoo.org>  # Further modifications based off submissions to bug #54984 <cyfred@gentoo.org>
# Line 67  get_implementations() Line 67  get_implementations()
67   for dir in ${PREFIX}/lib{,32,64}/opengl/*   for dir in ${PREFIX}/lib{,32,64}/opengl/*
68   do   do
69   if [[ -d ${dir} ]] &&   if [[ -d ${dir} ]] &&
70   [[ ${dir##*/} != global ]]   [[ ${dir##*/} != global ]] &&
71   && ! hasq ${dir##*/} ${implems}   ! hasq ${dir##*/} ${implems}
72   then   then
73   implems=${implems:+${implems} }${dir##*/}   implems=${implems:+${implems} }${dir##*/}
74   fi   fi
# Line 197  parse_options() Line 197  parse_options()
197   done   done
198  }  }
199    
200  set-new-implementation()  set_new_implementation()
201  {  {
202   local GL_IMPLEM=${1}   local GL_IMPLEM=${1}
203   local GL_LOCAL   local GL_LOCAL
# Line 406  case ${ACTION} in Line 406  case ${ACTION} in
406   ;;   ;;
407    
408   old-implementation)   old-implementation)
409   set-new-implementation ${CURRENT_GL_IMPLEM}   set_new_implementation ${CURRENT_GL_IMPLEM}
410   exit $?   exit $?
411   ;;   ;;
412    
413   set-implementation)   set-implementation)
414   if [[ -n ${NEW_GL_IMPLEM} ]]   if [[ -n ${NEW_GL_IMPLEM} ]]
415   then   then
416   set-new-implementation ${NEW_GL_IMPLEM}   set_new_implementation ${NEW_GL_IMPLEM}
417   exit $?   exit $?
418   else   else
419   print_usage   print_usage

Legend:
Removed from v.623  
changed lines
  Added in v.624