Mercurial > hg > aboriginal
annotate more/test.sh @ 1229:313c702a0984
Remove toybox.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 24 Aug 2010 03:08:47 -0500 |
parents | 300e6d919d86 |
children | 3e7bf55b1bfb |
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 |
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
|
7 echo "Usage: test.sh ARCH COMMAND..." >&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
|
8 echo "You generally want to set STAGE_NAME= too." |
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 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
|
10 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
|
11 |
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 . 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
|
13 |
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 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
|
15 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
|
16 eval "$@" |