myspec={}
#these would come from /etc/catalyst.conf:
myspec["storedir"]="/var/tmp/catalyst"
-myspec["sharedir"]="/usr/share/catalyst"
+#myspec["sharedir"]="/usr/share/catalyst"
+myspec["sharedir"]=os.getcwd()
#these would come from there too?:
myspec["distdir"]="/mnt/misc/distfiles"
myspec["portdir"]="/usr/portage"
build)
export ROOT=${2}
install -d $ROOT
+ if [ -n "${clst_CCACHE}" ]
+ then
+ export FEATURES="ccache"
+ emerge --oneshot --nodeps ccache || exit 1
+ fi
+ if [ -n "${clst_PKGCACHE}" ]
+ then
+ export EMERGE_OPTS="--usepkg --buildpkg"
+ fi
for x in $(/tmp/build.sh)
do
echo $x >> /tmp/build.log
- USE="-* build" emerge --usepkg --buildpkg --noreplace $x || exit 1
+ USE="-* build" emerge --noreplace $x || exit 1
done
;;
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.3 2003/10/30 06:21:08 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.4 2003/10/30 21:11:57 drobbins Exp $
case $1 in
enter)
cat /etc/make.profile/make.defaults | grep GRP_STAGE23_USE > /tmp/stage23
source /tmp/stage23
export USE="-* \${clst_HOSTUSE} \${GRP_STAGE23_USE}"
- echo
- echo "USE variables active: \${USE}"
- rm -f /tmp/stage23
- echo
if [ -n "${clst_CCACHE}" ]
then
export FEATURES="ccache"