include quotes when showing make output
authorMike Frysinger <vapier@gentoo.org>
Tue, 18 Nov 2008 01:31:27 +0000 (01:31 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 18 Nov 2008 01:31:27 +0000 (01:31 -0000)
svn path=/main/trunk/; revision=11988

bin/emake

index db5b30b5942238c4f4c39a9b94a0ad5ec9ddbf2a..18d8f089c3be4530086d34a01a40f4c7245a6614 100755 (executable)
--- a/bin/emake
+++ b/bin/emake
 #        /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} "$@"