summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/games.eclass15
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}
+}