diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-10-14 01:27:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-10-14 01:27:40 +0000 |
commit | 40a8316b900f2c780803542cf000e95e03a64d60 (patch) | |
tree | 931d7d2e1a18f3e682df4b989b303c7947c9b141 /eclass/games.eclass | |
parent | ver bump (diff) | |
download | gentoo-2-40a8316b900f2c780803542cf000e95e03a64d60.tar.gz gentoo-2-40a8316b900f2c780803542cf000e95e03a64d60.tar.bz2 gentoo-2-40a8316b900f2c780803542cf000e95e03a64d60.zip |
wrapper script
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r-- | eclass/games.eclass | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 37b89c99b193..c2eef835fa31 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.50 2003/10/01 23:07:17 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.51 2003/10/14 01:27:40 vapier Exp $ # # devlist: {vapier,wolf31o2,msterret}@gentoo.org # @@ -173,3 +173,16 @@ games_ut_unpack() { #done fi } + +# make a wrapper script ... +games_make_wrapper() { + local bin=$1 ; shift + local chdir=$1 ; shift + local wrapper="`mymktemp ${T}`" + cat << EOF > ${wrapper} +#!/bin/sh +cd "${chdir}" +exec "./${bin}" "\$@" +EOF + echo ${wrapper} +} |