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

Update the common code, use "files" directory instead of build for subdir.
author Rob Landley <>
date Thu, 07 Oct 2010 23:50:12 -0500
parents sources/native-builds/bootstrap-skeleton/build/init@df70740df1a5
line wrap: on
line source


# Start running here, and hand off to in chroot.

. /mnt/

[ -z "$NATIVE_BUILD" ] && NATIVE_BUILD=chroot

# 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/"$NATIVE_BUILD" /mnt/

if [ $? -eq 0 ]
  set_titlebar "upload tarball"
  tar czvf "$NATIVE_BUILD".tar.gz "$NATIVE_BUILD" | dotprogress &&
  upload_result "$NATIVE_BUILD".tar.gz