annotate more/test.sh @ 1432:ee0e4f2f4bdb

Fiddle with the downloads/binaries layout yet again, and update README for it.
author Rob Landley <rob@landley.net>
date Tue, 23 Aug 2011 08:21:48 -0500
parents b74d36876c0a
children a96e0dd0dc33
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1398
b74d36876c0a Replace read_arch_dir with load_target, which understands that sources/targets/$TARGET can be a file or a directory.
Rob Landley <rob@landley.net>
parents: 1248
diff changeset
13 load_target "$1"
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
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 "$@"