Mercurial > hg > control-images
comparison images/hello-world/build.sh @ 9:242a1e03ce15 1.1.0
Move repeated wrapper code into top level build.sh.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 18 Sep 2011 18:03:47 -0500 |
parents | 1a7e1616ab9d |
children |
comparison
equal
deleted
inserted
replaced
8:3db62f3c2ac3 | 9:242a1e03ce15 |
---|---|
2 | 2 |
3 # Simple self-contained build control image creation script. Doesn't use | 3 # Simple self-contained build control image creation script. Doesn't use |
4 # the bootstrap skeleton, instead compiles and runs the threaded "hello world" | 4 # the bootstrap skeleton, instead compiles and runs the threaded "hello world" |
5 # program from the Aboriginal Linux /usr/src directory as a build environment | 5 # program from the Aboriginal Linux /usr/src directory as a build environment |
6 # smoketest. Grep the output for "Hello world!" to test for success. | 6 # smoketest. Grep the output for "Hello world!" to test for success. |
7 | |
8 # Download all the source tarballs we haven't got up-to-date copies of. | |
9 | |
10 # The tarballs are downloaded into the "packages" directory, which is | |
11 # created as needed. | |
12 | |
13 source common/include.sh || exit 1 | |
14 | 7 |
15 # Write init script via a "here" document. | 8 # Write init script via a "here" document. |
16 | 9 |
17 cat > "$WORK"/init << 'EOF' || dienow | 10 cat > "$WORK"/init << 'EOF' || dienow |
18 #!/bin/bash | 11 #!/bin/bash |
31 sync | 24 sync |
32 | 25 |
33 EOF | 26 EOF |
34 | 27 |
35 chmod +x "$WORK"/init || dienow | 28 chmod +x "$WORK"/init || dienow |
36 | |
37 squash_image |