Mercurial > hg > control-images
view common/bootstrap/init @ 33:a051c841d782
Add command recording ability (via record-commands wrapper).
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 22 Mar 2013 22:54:03 -0500 |
parents | bcd2e358d57f |
children | 31d7462a8649 |
line wrap: on
line source
#!/bin/bash # Start running here, and hand off to run-build-stages.sh in chroot. . /mnt/functions.sh [ -z "$NATIVE_BUILD" ] && NATIVE_BUILD=chroot # Is the root filesystem already writeable? if touch /.amiwrite 2>/dev/null && rm /.amiwrite 2>/dev/null then # build and install stuff on the writable filesystem /mnt/run-build-stages.sh else # Create a new writeable chroot, build and install stuff in there setup-chroot /home/"$NATIVE_BUILD" /mnt/run-build-stages.sh # Upload a tarball of the result to the host if [ $? -eq 0 ] then set_titlebar "upload tarball" tar czvf "$NATIVE_BUILD".tar.gz "$NATIVE_BUILD" | dotprogress && upload_result "$NATIVE_BUILD".tar.gz fi fi