diff options
-rwxr-xr-x | bin/ebuild.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index d4bceae40..dac55a211 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1003,14 +1003,15 @@ dyn_install() { cd "${PORTAGE_BUILDDIR}"/build-info set -f - local f + local f x + IFS=$' \t\n\r' for f in ASFLAGS CATEGORY CBUILD CC CFLAGS CHOST CTARGET CXX \ CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \ FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \ LICENSE PDEPEND PF PKGUSE PROPERTIES PROVIDE RDEPEND RESTRICT SLOT \ KEYWORDS HOMEPAGE SRC_URI DESCRIPTION; do - [ -n "${!f}" ] && echo $(echo "${!f}" | \ - tr '\n,\r,\t' ' , , ' | sed s/' \+'/' '/g) > ${f} + x=$(echo -n ${!f}) + [[ -n $x ]] && echo "$x" > $f done echo "${USE}" > USE echo "${EAPI:-0}" > EAPI |