summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-07 09:26:08 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-07 09:26:08 +0000
commit2434d0f6c4ff64070e811ed64902ad6b0722d3b9 (patch)
tree7fd70159bd69cbce2fbc090c5dbc7060d0cfb801 /bin
parentfix --libdir detection when econf is passed whitespace/empty arguments ... th... (diff)
downloadportage-idfetch-2434d0f6c4ff64070e811ed64902ad6b0722d3b9.tar.gz
portage-idfetch-2434d0f6c4ff64070e811ed64902ad6b0722d3b9.tar.bz2
portage-idfetch-2434d0f6c4ff64070e811ed64902ad6b0722d3b9.zip
fix previous commit -- hasq isnt as cool as i thought and doesnt accept globs, so define a new hasg() func that does and use that
svn path=/main/trunk/; revision=12589
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 34e4f747..2c46da3f 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[= ]}))