diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-04-07 08:52:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-04-07 08:52:46 +0000 |
commit | e12b6a2df1810b088105d609bdbfc2e727ca0457 (patch) | |
tree | 1cae7713381bf4b90b28571622d6e21914f6d7c3 /eclass/java-utils-2.eclass | |
parent | stable amd64, bug 169830 (diff) | |
download | gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.gz gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.tar.bz2 gentoo-2-e12b6a2df1810b088105d609bdbfc2e727ca0457.zip |
replace INSDESTTREE/INSOPTIONS with subshells and insinto/insopts
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 635236ab34f1..8545b9eb4123 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -6,7 +6,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.68 2007/03/25 10:02:09 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.69 2007/04/07 08:52:46 vapier Exp $ # ----------------------------------------------------------------------------- @@ -208,9 +208,15 @@ java-pkg_doexamples() { local dest=/usr/share/doc/${PF}/examples if [[ ${#} = 1 && -d ${1} ]]; then - INSDESTTREE="${dest}" doins -r ${1}/* || die "Installing examples failed" + ( # dont want to pollute calling env + insinto "${dest}" + doins -r ${1}/* + ) || die "Installing examples failed" else - INSDESTTREE="${dest}" doins -r "${@}" || die "Installing examples failed" + ( # dont want to pollute calling env + insinto "${dest}" + doins -r "$@" + ) || die "Installing examples failed" fi } |