annotate more/test.sh @ 1737:1acbe7e78d9d draft

Switch from bz2 to gz tarball output. bz2 is slowly being replaced by lz variants, but gzip isn't going anywhere. (It retains a niche as a streaming protocol, it's the 80/20 solution optimizing for speed, low memory requirements, and simple compressor implementation.)
author Rob Landley <rob@landley.net>
date Fri, 20 Feb 2015 13:12:45 -0600
parents 95f662f66fe4
children
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
1470
95f662f66fe4 Add "host" target to more/test.sh in case somebody doesn't want any target loaded.
Rob Landley <rob@landley.net>
parents: 1450
diff changeset
13 [ "$1" != "host" ] && NO_CLEANUP=1 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 "$@"