change "EXEDESTTREE" to "_E_EXEDESTTREE_" to try and prevent abuse from ebuild writers
authorMike Frysinger <vapier@gentoo.org>
Sat, 7 Apr 2007 08:32:35 +0000 (08:32 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 7 Apr 2007 08:32:35 +0000 (08:32 -0000)
svn path=/main/trunk/; revision=6351

bin/dobin
bin/doexe
bin/doinitd
bin/ebuild.sh

index f24e34167d48438f270172dcdb43dd6983d197e3..45cc61d7e231a01d2a15ebb60ce4fc22919a3e0b 100755 (executable)
--- a/bin/dobin
+++ b/bin/dobin
@@ -3,8 +3,10 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
+
 if [[ $# -lt 1 ]] ; then
-       echo "$0: at least one argument needed" 1>&2
+       vecho "$0: at least one argument needed" 1>&2
        exit 1
 fi
 
@@ -18,7 +20,7 @@ for x in "$@" ; do
        if [[ -e ${x} ]] ; then
                install -m0755 -o ${PORTAGE_INST_UID:-0} -g ${PORTAGE_INST_GID:-0} "${x}" "${D}${DESTTREE}/bin"
        else
-               echo "!!! ${0##*/}: ${x} does not exist" 1>&2
+               vecho "!!! ${0##*/}: ${x} does not exist" 1>&2
                false
        fi
        ((ret+=$?))
index e4e6fdc6573d84c33b084bc3153c2a8443690140..012e320345ffbd987a4e0ea858f23de63e1a2690 100755 (executable)
--- a/bin/doexe
+++ b/bin/doexe
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -10,8 +10,8 @@ if [[ $# -lt 1 ]] ; then
        exit 1
 fi
 
-if [[ ! -d ${D}${EXEDESTTREE} ]] ; then
-       install -d "${D}${EXEDESTTREE}"
+if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
+       install -d "${D}${_E_EXEDESTTREE_}"
 fi
 
 for x in "$@" ; do
@@ -24,5 +24,5 @@ for x in "$@" ; do
        else
                mysrc="${x}"
        fi
-       install ${EXEOPTIONS} "${mysrc}" "${D}${EXEDESTTREE}"
+       install ${EXEOPTIONS} "${mysrc}" "${D}${_E_EXEDESTTREE_}"
 done
index e8d9f69fad494b8f9ce51e63757f51b9ead4d990..0f1af94069146b23ad468a981b362f856f5639ee 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -10,5 +10,5 @@ fi
 
 exec \
 env \
-EXEDESTTREE="/etc/init.d/" \
+_E_EXEDESTTREE_="/etc/init.d/" \
 doexe "$@"
index 8f866d7b8456222b516e13998d0dc878e2a491e1..755b0ba3950887a670f4e4f9c8b4b5bfc408ed22 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -270,7 +270,7 @@ register_die_hook() {
 umask 022
 export DESTTREE=/usr
 export INSDESTTREE=""
-export EXEDESTTREE=""
+export _E_EXEDESTTREE_=""
 export _E_DOCDESTTREE_=""
 export INSOPTIONS="-m0644"
 export EXEOPTIONS="-m0755"
@@ -750,11 +750,11 @@ insinto() {
 
 exeinto() {
        if [ "$1" == "/" ]; then
-               export EXEDESTTREE=""
+               export _E_EXEDESTTREE_=""
        else
-               export EXEDESTTREE="$1"
-               if [ ! -d "${D}${EXEDESTTREE}" ]; then
-                       install -d "${D}${EXEDESTTREE}"
+               export _E_EXEDESTTREE_="$1"
+               if [ ! -d "${D}${_E_EXEDESTTREE_}" ]; then
+                       install -d "${D}${_E_EXEDESTTREE_}"
                fi
        fi
 }
@@ -762,7 +762,6 @@ exeinto() {
 docinto() {
        if [ "$1" == "/" ]; then
                export _E_DOCDESTTREE_=""
-               eqawarn "QA Notice: invalid usage of docinto"
        else
                export _E_DOCDESTTREE_="$1"
                if [ ! -d "${D}usr/share/doc/${PF}/${_E_DOCDESTTREE_}" ]; then