aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-01-12 12:23:37 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-01-12 12:23:37 +0000
commit3d5229a4f38e23d0ab6082ad1f02af63542746f8 (patch)
treefc9844b7220252c1e627bdf63b0efccea5a4ac6b
parent0f8982e76bec360e87304788664176fc080fb8c4 (diff)
downloadpaludis-3d5229a4f38e23d0ab6082ad1f02af63542746f8.tar.gz
paludis-3d5229a4f38e23d0ab6082ad1f02af63542746f8.tar.xz
Make econf() handle spaces properly. Thanks to coldwind for noticing.
-rw-r--r--paludis/repositories/e/ebuild/build_functions.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/build_functions.bash b/paludis/repositories/e/ebuild/build_functions.bash
index 6492858..0a71e89 100644
--- a/paludis/repositories/e/ebuild/build_functions.bash
+++ b/paludis/repositories/e/ebuild/build_functions.bash
@@ -30,9 +30,9 @@ econf()
if [[ -x "${ECONF_SOURCE}/configure" ]] ; then
if [[ -d /usr/share/gnuconfig ]] ; then
local f
- for f in $(find "${WORKDIR}" -type f -name config.guess -or -name config.sub ) ; do
+ find "${WORKDIR}" -type f -name config.guess -or -name config.sub | while read f; do
echo "econf: updating ${f} with /usr/share/gnuconfig/${f##*/}"
- cp -f /usr/share/gnuconfig/${f##*/} ${f}
+ cp -f "/usr/share/gnuconfig/${f##*/}" "${f}"
done
fi
@@ -58,7 +58,7 @@ econf()
fi
fi
- echo ${LOCAL_ECONF_WRAPPER} ${ECONF_SOURCE}/configure \
+ echo ${LOCAL_ECONF_WRAPPER} "${ECONF_SOURCE}"/configure \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
@@ -68,7 +68,7 @@ econf()
--localstatedir=/var/lib \
${libcmd} "$@" ${LOCAL_EXTRA_ECONF} 1>&2
- ${LOCAL_ECONF_WRAPPER} ${ECONF_SOURCE}/configure \
+ ${LOCAL_ECONF_WRAPPER} "${ECONF_SOURCE}"/configure \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \