annotate more/test.sh @ 1391:42ec661e3916

Fix BINARY_PACKAGE_TARBALLS generation: some packages produce no output (zlib used to build dropbear for example), and thus check for an empty list before trying to make a tarball.
author Rob Landley <rob@landley.net>
date Fri, 17 Jun 2011 13:00:17 -0500
parents 3e7bf55b1bfb
children b74d36876c0a
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
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 "$@"