--- trunk/opengl-update/opengl-update.sh 2007/11/14 18:45:26 624 +++ trunk/opengl-update/opengl-update.sh 2012/05/02 08:35:15 1812 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /home/cvsd/magellan-cvs/magellan-src/opengl-update/opengl-update.sh,v 1.7 2007-11-14 18:45:26 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/opengl-update/opengl-update.sh,v 1.10 2007-11-14 19:19:16 niro Exp $ # Author: Martin Schlemmer # Further modifications by Donnie Berkholz # Further modifications based off submissions to bug #54984 @@ -11,8 +11,6 @@ # # -. /etc/init.d/functions - hasq() { local x @@ -102,11 +100,13 @@ Usage: ${0##*/} [] Set the opengl implementation. Valid options: + --help|-h|-?: Prints this help. + --version: Shows the version of this utility. --use-old: If an implementation is already set, use that one. --prefix=: Set the source prefix (default: /usr) --dst-prefix=: Set the destination prefix (default: /usr) --impl-headers: Use headers provided by this implementation to - override golbal ones provided by opengl-update. + override global ones provided by opengl-update. Usage: ${0##*/} --get-implementation Print the current implementaion @@ -227,7 +227,7 @@ [[ -d ${PREFIX}/${LIBDIR}/opengl ]] || continue else [[ -d ${PREFIX}/${LIBDIR}/opengl ]] && - ! -h ${PREFIX}/${LIBDIR} ]] || continue + [[ ! -h ${PREFIX}/${LIBDIR} ]] || continue fi # Fallback on xorg if we don't have this implementation for this LIBDIR.