summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 03:45:12 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 03:45:12 +0000
commitad34b67b0129e4d4e19b8a0a5d37fe4050d37238 (patch)
tree0a972104dc001861d708abe6d86838dd04b85068 /bin
parentebc421cee66af6a7c052444e28f58ef62adacdeb (diff)
downloadportage-ad34b67b0129e4d4e19b8a0a5d37fe4050d37238.tar.gz
portage-ad34b67b0129e4d4e19b8a0a5d37fe4050d37238.tar.bz2
portage-ad34b67b0129e4d4e19b8a0a5d37fe4050d37238.zip
(trunk r12589)
svn path=/main/branches/2.1.6/; revision=12870
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 34e4f747b..2c46da3f9 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -455,6 +455,12 @@ strip_duplicate_slashes() {
fi
}
+hasg() {
+ local x s=$1
+ shift
+ for x ; do [[ ${x} == ${s} ]] && echo "${x}" && return 0 ; done
+ return 1
+}
econf() {
local x
local LOCAL_EXTRA_ECONF="${EXTRA_ECONF}"
@@ -491,7 +497,7 @@ econf() {
CONF_LIBDIR="${!LIBDIR_VAR}"
fi
unset LIBDIR_VAR
- if [ -n "${CONF_LIBDIR}" ] && ! hasq --libdir=* "$@" ; then
+ if [ -n "${CONF_LIBDIR}" ] && ! hasg --libdir=* "$@" ; then
if [ "${*/--exec-prefix}" != "$*" ]; then
local args="$(echo $*)"
local -a pref=($(echo ${args/*--exec-prefix[= ]}))