added target build scripts
authorJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:33:03 +0000 (05:33 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 15 Oct 2003 05:33:03 +0000 (05:33 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@11 d1e1f19c-881f-0410-ab34-b69fee027534

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

index 451b041d93af29460009db0ad7b9426ebc2ad8ab..1d0a793d96b44d407ad4a911edbd31b94682a673 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.2 2003/10/15 04:30:02 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.3 2003/10/15 05:33:03 zhen Exp $
+
+  15 Oct 2003; zhen <zhen@gentoo.org> targets/stage3/stage3.sh:
+  All preliminary target build scripts are now added and coded to near as spec
+  that we can have at this point.
 
   14 Oct 2003; Daniel Robbins <drobins@gentoo.org>: new and improved ChangeLog;
   snapshots now work ("./catalyst-util.py snap 20031014",) and snapshotting cleans
diff --git a/targets/stage3/stage3.sh b/targets/stage3/stage3.sh
new file mode 100755 (executable)
index 0000000..864d063
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.1 2003/10/15 05:33:03 zhen Exp $
+
+$CHROOT . /bin/bash << EOF
+       env-update
+       source /etc/profile
+       if [ ${CCACHE} -eq 1 ]
+       then
+               emerge --oneshot --nodeps --usepkg --buildpkg ccache || exit 1
+       fi
+       if [ ${REL_TYPE} = "hardened" ]
+       then
+               emerge --oneshot --nodeps hardened-gcc || exit 1
+       fi
+       export CONFIG_PROTECT="-*"
+       emerge system --usepkg --buildpkg || exit 1
+EOF
+
+[ $? -ne 0 ] && die "Stage 3 build failure"
+