view @ 757:a179f03cb825

Don't both mkdir and ln -s /etc. (Spotted by Niklas Brunb?ck.)
author Rob Landley <>
date Tue, 23 Jun 2009 19:30:09 -0500
parents d0157468f73d
children e373d2b6d0b8
line wrap: on
line source


# This script compiles stuff under the final system, using distcc to call out
# to the cross compiler.

# Set up a timeout.  If it doesn't complete in 60 seconds, it failed.

  sleep 45
  kill $1

timeout $$ &
trap "pkill -P$$" EXIT

# Call run-from-build with a here document to do stuff.

# Note that the first line of the script is a few spaces followed by a comment
# character.  This gives some harmless data for the linux boot process to
# consume and discard before it gets to the command prompt.  I don't know why
# it does this, but it does.  The comment character is so you can see how
# much got eaten, generally about 3 characters.

# If you cat your own script into, you probably also need
# to start with a line of spaces like that.  Just FYI.

./ $1 << 'EOF'
# Show free space
# Smoke test for the compiler
gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello &&