adding build files
authorJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:23:14 +0000 (05:23 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:23:14 +0000 (05:23 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@10 d1e1f19c-881f-0410-ab34-b69fee027534

targets/stage2/stage2.sh [new file with mode: 0755]

diff --git a/targets/stage2/stage2.sh b/targets/stage2/stage2.sh
new file mode 100755 (executable)
index 0000000..4e5d90d
--- /dev/null
@@ -0,0 +1,19 @@
+# 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.1 2003/10/15 05:23:14 zhen Exp $
+
+$CHROOT . /bin/bash << EOF
+       env-update
+       source /etc/profile
+       mkdir -p /usr/portage/packages/All
+       export EMERGE_OPTS="--usepkg --buildpkg"
+       if [ ${CCACHE} -eq 1 ]
+       then
+               emerge --oneshot --nodeps ccache || exit 1
+       fi
+
+       /usr/portage/scripts/bootstrap.sh || exit 1
+EOF
+
+[ $? -ne 0 ] && die "Stage 2 build failure"
+