From e0492da3898cf842b67eb49539bf91d3f91ea630 Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Sun, 25 Dec 2005 07:27:56 +0000 Subject: [PATCH] - only record vdb entries when the value is non null svn path=/main/trunk/; revision=2453 --- bin/ebuild.sh | 41 ++++++++++------------------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 2c8f49240..4cdf49869 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -908,37 +908,16 @@ dyn_compile() { touch .compiled cd build-info - echo "$ASFLAGS" > ASFLAGS - echo "$CATEGORY" > CATEGORY - echo "$CBUILD" > CBUILD - echo "$CC" > CC - echo "$CFLAGS" > CFLAGS - echo "$CHOST" > CHOST - echo "$CTARGET" > CTARGET - echo "$CXX" > CXX - echo "$CXXFLAGS" > CXXFLAGS - echo "$DEPEND" > DEPEND - echo "$EXTRA_ECONF" > EXTRA_ECONF - echo "$EXTRA_EINSTALL" > EXTRA_EINSTALL - echo "$EXTRA_EMAKE" > EXTRA_MAKE - echo "$FEATURES" > FEATURES - echo "$INHERITED" > INHERITED - echo "$IUSE" > IUSE - echo "$PKGUSE" > PKGUSE - echo "$LDFLAGS" > LDFLAGS - echo "$LIBCFLAGS" > LIBCFLAGS - echo "$LIBCXXFLAGS" > LIBCXXFLAGS - echo "$LICENSE" > LICENSE - echo "$PDEPEND" > PDEPEND - echo "$PF" > PF - echo "$PROVIDE" > PROVIDE - echo "$RDEPEND" > RDEPEND - echo "$RESTRICT" > RESTRICT - echo "$SLOT" > SLOT - echo "$USE" > USE - echo "${EAPI:-0}" > EAPI - - set > environment + for f in ASFLAGS CATEGORY CBUILD CC CDEPEND CFLAGS CHOST CXX \ + CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \ + FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \ + LICENSE PDEPEND PF PKGUSE PROVIDE RDEPEND RESTRICT SLOT; do + local entry="${!f}" + [[ $entry != "" ]] && echo "${entry}" > $f + done + echo "${USE}" > USE + echo "${EAPI:-0}" > EAPI + set > environment export -p | sed 's:declare -rx:declare -x:' >> environment bzip2 -9 environment -- 2.26.2