# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-chroot.sh, targets/support/kmerge.sh:
+ OK, we have to escape our quotes, rather than use single quotes, or we don't
+ evaluate the variables properly.
+
28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
targets/stage1/stage1-chroot.sh, targets/support/chroot-functions.sh,
targets/support/kmerge.sh:
sed -i '/USE="${USE} -build"/d' /etc/make.conf
[ -e /etc/make.conf ] && \
- echo 'USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}"' >> /etc/make.conf
+ echo "USE=\"-* bindist build ${STAGE1_USE} ${HOSTUSE}\"" >> /etc/make.conf
run_merge "--noreplace --oneshot --newuse ${clst_buildpkgs}"
sed -i '/USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}"/d' \
/etc/make.conf
fi
fi
-[ -e /etc/make.conf ] && echo 'USE="${USE} ${clst_kernel_use} symlink build"' \
- >> /etc/make.conf
+[ -e /etc/make.conf ] && \
+ echo \"USE="${USE} ${clst_kernel_use} symlink build\"" >> /etc/make.conf
if [ -n "${clst_KERNCACHE}" ]
then