annotate sources/native-builds/bootstrap-skeleton/files/init @ 1258:c264495fbf21

Update the common code, use "files" directory instead of build for subdir.
author Rob Landley <rob@landley.net>
date Thu, 07 Oct 2010 23:50:12 -0500
parents sources/native-builds/bootstrap-skeleton/build/init@df70740df1a5
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
1258
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
7 [ -z "$NATIVE_BUILD" ] && NATIVE_BUILD=chroot
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
8
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
9 # 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
10 # 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
11 # host environment.
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
12
1258
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
13 do_in_chroot /home/"$NATIVE_BUILD" /mnt/run-build-stages.sh
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
14
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
15 if [ $? -eq 0 ]
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 then
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 set_titlebar "upload tarball"
1258
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
18 tar czvf "$NATIVE_BUILD".tar.gz "$NATIVE_BUILD" | dotprogress &&
c264495fbf21 Update the common code, use "files" directory instead of build for subdir.
Rob Landley <rob@landley.net>
parents: 1256
diff changeset
19 upload_result "$NATIVE_BUILD".tar.gz
1256
df70740df1a5 Add generic native-build infastructure.
Rob Landley <rob@landley.net>
parents:
diff changeset
20 fi