From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9ADAC198005 for ; Mon, 11 Mar 2013 07:21:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 539EDE05F2; Mon, 11 Mar 2013 07:21:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DB62DE05F2 for ; Mon, 11 Mar 2013 07:21:27 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED4CD33D3D6 for ; Mon, 11 Mar 2013 07:21:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 86F37E4079 for ; Mon, 11 Mar 2013 07:21:24 +0000 (UTC) From: "Ulrich Mueller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Mueller" Message-ID: <1362986671.59a88458c795674b63f5d668695712a2c063d9ab.ulm@gentoo> Subject: [gentoo-commits] proj/eselect:extern commit in: /, modules/ X-VCS-Repository: proj/eselect X-VCS-Files: ChangeLog modules/xvmc.eselect X-VCS-Directories: / modules/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Mueller X-VCS-Revision: 59a88458c795674b63f5d668695712a2c063d9ab X-VCS-Branch: extern Date: Mon, 11 Mar 2013 07:21:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ada18a43-439d-4e47-814f-72de7bfc4900 X-Archives-Hash: c0c6fa0b503b05d73bdc9fa250fcc14e commit: 59a88458c795674b63f5d668695712a2c063d9ab Author: Ulrich Müller gentoo org> AuthorDate: Mon Mar 11 07:24:31 2013 +0000 Commit: Ulrich Mueller gentoo org> CommitDate: Mon Mar 11 07:24:31 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=59a88458 xvmc.eselect: Use OSTYPE instead of uname. * modules/xvmc.eselect (get_libname): Use the OSTYPE bash variable instead of calling uname -s. --- ChangeLog | 5 +++++ modules/xvmc.eselect | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d3ae9c5..b3256cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-03-11 Ulrich Müller + + * modules/xvmc.eselect (get_libname): Use the OSTYPE bash variable + instead of calling uname -s. + 2013-03-10 Christoph Junghans * modules/xvmc.eselect: added changes from gx86 diff --git a/modules/xvmc.eselect b/modules/xvmc.eselect index 46deac5..cd435cc 100644 --- a/modules/xvmc.eselect +++ b/modules/xvmc.eselect @@ -9,9 +9,10 @@ VERSION=$(svn_date_to_version "${SVN_DATE}" ) init_XVMC_vars() { get_libname() { - [[ $(uname) == "Darwin" ]] \ - && echo ${1:+.}${1}.dylib \ - || echo .so${1:+.}${1} + case ${OSTYPE} in + darwin*) echo ${1:+.}${1}.dylib ;; + *) echo .so${1:+.}${1} ;; + esac } XVMCLIBS=(