summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-18 03:04:56 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-18 03:04:56 +0000
commitea6c154297e7de06d3696426adb2a7155f31f16c (patch)
tree8c6214a84c755b8e721e3feb86bf42bb235479a5
parent0d1a4f6327037cb58017594c983bdc73ce8c591f (diff)
downloadportage-ea6c154297e7de06d3696426adb2a7155f31f16c.tar.gz
portage-ea6c154297e7de06d3696426adb2a7155f31f16c.tar.bz2
portage-ea6c154297e7de06d3696426adb2a7155f31f16c.zip
include quotes when showing make output (trunk r11988)
svn path=/main/branches/2.1.6/; revision=11989
-rwxr-xr-xbin/emake11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/emake b/bin/emake
index db5b30b59..18d8f089c 100755
--- a/bin/emake
+++ b/bin/emake
@@ -11,6 +11,15 @@
# /etc/make.globals here because emake is only called from an
# ebuild.
-[[ $PORTAGE_QUIET = 1 ]] || echo ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" >&2
+if [[ $PORTAGE_QUIET != 1 ]] ; then
+ (
+ for arg in ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" ; do
+ [[ ${arg} == *" "* ]] \
+ && printf "'%s' " "${arg}" \
+ || printf "%s " "${arg}"
+ done
+ printf "\n"
+ ) >&2
+fi
exec ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"