view @ 253:f93932523a08

Reorder forkbomb build so ./ gets built first. Then toybox utilities can be used to extract all the other packages (patch, bunzip, sha1sum, echo, eventually tar...) Motivated by a bug I encountered in gnu patch on Kubuntu 7.10 that's insisting linux-2.6.13-cmdline.patch is a reversed patch, when it isn't. (That patch has been happily applying for over a year now, and I examined it by hand. The bug's in the Ubuntu patch command. Not my problem.)
author Rob Landley <>
date Tue, 01 Jan 2008 03:08:29 -0600
parents f8dac531cbb5
children b2e353ae7566
line wrap: on
line source


# If run with no arguments, list architectures.

if [ $# -eq 0 ]
  echo "Usage: $0 ARCH [ARCH...]"
  exit 1

# Download source code and build host tools.

./ || exit 1
time ./ || exit 1

# Run the steps in order for each architecture listed on the command line
for i in "$@"
  echo "=== Building ARCH $i"
  time ./ $i || exit 1
  echo "=== native ($i)"
  time ./ $i || exit 1
  time ./ $i || exit 1