--- trunk/opengl-update/opengl-update.sh 2007/11/14 18:15:11 617 +++ trunk/opengl-update/opengl-update.sh 2007/11/14 18:20:10 621 @@ -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.2 2007-11-14 18:15:11 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/opengl-update/opengl-update.sh,v 1.6 2007-11-14 18:20:10 niro Exp $ # Author: Martin Schlemmer # Further modifications by Donnie Berkholz # Further modifications based off submissions to bug #54984 @@ -170,7 +170,7 @@ --impl-headers) USE_PROFILE_HEADERS="yes" ;; - --help|-h|-?) ACION="usage" ;; + --help|-h|-?) ACTION="usage" ;; --version) ACTION="version" ;; @@ -367,7 +367,12 @@ done - echo "LDPATH=\"${ldpath}\"" > ${ENV_D} + # put only one LDPATH per line! + local i + for i in $(echo ${ldpath} | sed "s:\::\ :g") + do + echo "LDPATH=\"${i}\"" >> ${ENV_D} + done echo "OPENGL_PROFILE=\"${GL_IMPLEM}\"" >> ${ENV_D} env-rebuild @@ -385,7 +390,7 @@ AVAIL_IMPLEMS=$(get_implementations) CURRENT_GL_IMPLEM=$(get_current_implem) USE_PROFILE_HEADERS="no" -VERSION="2.2.4" +VERSION="@@VERSION@@" parse_options ${@}