annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 # Start running here, and hand off to run-build-stages.sh in chroot.
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 . /mnt/functions.sh
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
6
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 # Always chroot, because even if root filesystem is writeable it's hard to
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
8 # tell tar to skip /proc and /sys and such without unmounting bits of the
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 # host environment.
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
10
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
11 do_in_chroot /home/chroot /mnt/run-build-stages.sh
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
12
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 if [ $? -eq 0 ]
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 then
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 set_titlebar "upload tarball"
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 tar czvf gentoo-stage1.tar.gz gentoo-stage1 | dotprogress &&
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 upload_result gentoo-stage1.tar.gz
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
18 fi