diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-03-22 18:24:24 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-03-22 18:24:24 +0000 |
commit | 1c806be712f43285fb0b9d9003f3102a38977ecc (patch) | |
tree | 3dae122104b3ec64be0b0dd017eb1e1aeebaca4e /eclass | |
parent | Version bump, bug #51478 (diff) | |
download | gentoo-2-1c806be712f43285fb0b9d9003f3102a38977ecc.tar.gz gentoo-2-1c806be712f43285fb0b9d9003f3102a38977ecc.tar.bz2 gentoo-2-1c806be712f43285fb0b9d9003f3102a38977ecc.zip |
Updated games_make_wrapper to use make_wrapper function.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games.eclass | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index afe5cd38dd8c..9d7491a17135 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.89 2005/02/18 21:55:35 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.90 2005/03/22 18:24:24 wolf31o2 Exp $ # # devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org # @@ -202,14 +202,9 @@ games_umod_unpack() { # $3 == directory to chdir before running binary # $4 == extra LD_LIBRARY_PATH's (make it : delimited) games_make_wrapper() { - local wrapper=$1 bin=$2 chdir=$3 libdir=$4 - local tmpwrapper=$(emktemp) - cat << EOF > "${tmpwrapper}" -#!/bin/sh -cd "${chdir}" -export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:${libdir}" -exec ${bin} "\$@" -EOF - chmod go+rx "${tmpwrapper}" - newgamesbin "${tmpwrapper}" "${wrapper}" + into /usr/games + make_wrapper ${@} + # WARNING: This will stomp on the current value of "into" so be sure to + # check for this! + into /usr } |