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 | d05f90bfd5aafd4b9a9d48e68cf950e807eafaec (patch) | |
tree | 40944ed1aa8d5d2698ad75b7a1413e19f6fd8d03 /eclass/java-utils-2.eclass | |
parent | stable amd64, bug 169830 (diff) | |
download | historical-d05f90bfd5aafd4b9a9d48e68cf950e807eafaec.tar.gz historical-d05f90bfd5aafd4b9a9d48e68cf950e807eafaec.tar.bz2 historical-d05f90bfd5aafd4b9a9d48e68cf950e807eafaec.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 } |