Mercurial > hg > aboriginal
comparison sources/more/test.sh @ 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
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 16 May 2010 20:08:51 -0500 |
parents | |
children | b7efc55a3b09 |
comparison
equal
deleted
inserted
replaced
1085:2e03f846b21e | 1086:59281941172b |
---|---|
1 #!/bin/bash | |
2 | |
3 # Run a command with sources/include.sh and an architecture loaded | |
4 | |
5 if [ $# -eq 0 ] | |
6 then | |
7 echo "Usage: test.sh ARCH COMMAND..." >&2 | |
8 echo "You generally want to set STAGE_NAME= too." | |
9 exit 1 | |
10 fi | |
11 | |
12 . sources/include.sh || exit 1 | |
13 | |
14 read_arch_dir "$1" | |
15 shift | |
16 "$@" |