Mercurial > hg > aboriginal
annotate more/test.sh @ 1265:918501f802d1
Update squashfs and kernel to current versions.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 21 Oct 2010 19:09:51 -0500 |
parents | 3e7bf55b1bfb |
children | b74d36876c0a |
rev | line source |
---|---|
1086
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Run a command with sources/include.sh and an architecture loaded |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 if [ $# -eq 0 ] |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 then |
1248
3e7bf55b1bfb
Tighten up test.sh usage message.
Rob Landley <rob@landley.net>
parents:
1157
diff
changeset
|
7 echo "Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..." >&2 |
1086
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 exit 1 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 fi |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 . sources/include.sh || exit 1 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 read_arch_dir "$1" |
59281941172b
Test script to run individual build_stage invocations and such with include.sh and read_arch_dir loaded. Usage: STAGE_NAME=simple-cross-compiler sources/more/test.sh sparc build_stage uClibc
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 shift |
1089
b7efc55a3b09
Make test.sh able to use/print environment variables from the proper context.
Rob Landley <rob@landley.net>
parents:
1086
diff
changeset
|
15 eval "$@" |