diff sources/native-builds/bootstrap-skeleton/build/init @ 1256:df70740df1a5

Add generic native-build infastructure.
author Rob Landley <rob@landley.net>
date Tue, 05 Oct 2010 21:18:36 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/native-builds/bootstrap-skeleton/build/init	Tue Oct 05 21:18:36 2010 -0500
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Start running here, and hand off to run-build-stages.sh in chroot.
+
+. /mnt/functions.sh
+
+# Always chroot, because even if root filesystem is writeable it's hard to
+# tell tar to skip /proc and /sys and such without unmounting bits of the
+# host environment.
+
+do_in_chroot /home/chroot /mnt/run-build-stages.sh
+
+if [ $? -eq 0 ]
+then
+  set_titlebar "upload tarball"
+  tar czvf gentoo-stage1.tar.gz gentoo-stage1 | dotprogress &&
+  upload_result gentoo-stage1.tar.gz
+fi