view sources/native-builds/gentoo-bootstrap/build/init @ 1252:ba951c11fb48

Refactor the gentoo bootstrap build some more. Add "build" and "files" subdirectories, split each package build into a separate file, break out reusable shell functions into functions.sh. Flow control now init chrooting into run-build-stages.sh calling the individual package scripts.
author Rob Landley <rob@landley.net>
date Sat, 25 Sep 2010 13:40:04 -0500
parents sources/native-builds/gentoo-bootstrap/files/init@204238871b7c
children
line wrap: on
line source

#!/bin/bash

# Start running, 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 [ $RC -eq 0 ]
then
  set_titlebar "upload tarball"
  tar czvf gentoo-stage1.tar.gz gentoo-stage1 | dotprogress &&
  upload_result gentoo-stage1.tar.gz
fi