#!/bin/bash # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-base/opengl-update/files/opengl-update-3.0.0,v 1.4 2005/08/17 21:51:02 eradicator Exp $ # Author: Martin Schlemmer # Further modifications by Donnie Berkholz # Further modifications based off submissions to bug #54984 # Further modifications by Jeremy Huddleston . /etc/init.d/functions.sh hasq() { local x local me=${1} shift for x in "${@}"; do if [[ "${x}" == "${me}" ]]; then return 0 fi done return 1 } print_usage() { cat << FOO Usage: ${0##*/} [] Set the opengl implementation. Valid options: --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. Usage: ${0##*/} --get-implementation Print the current implementaion Notes: --impl-headers was default in