Mercurial > hg > aboriginal
view sources/more/test.sh @ 1089:b7efc55a3b09
Make test.sh able to use/print environment variables from the proper context.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 21 May 2010 22:25:10 -0500 |
parents | 59281941172b |
children |
line wrap: on
line source
#!/bin/bash # Run a command with sources/include.sh and an architecture loaded if [ $# -eq 0 ] then echo "Usage: test.sh ARCH COMMAND..." >&2 echo "You generally want to set STAGE_NAME= too." exit 1 fi . sources/include.sh || exit 1 read_arch_dir "$1" shift eval "$@"