Mercurial > hg > aboriginal
view more/test.sh @ 1398:b74d36876c0a
Replace read_arch_dir with load_target, which understands that sources/targets/$TARGET can be a file or a directory.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 26 Jun 2011 17:44:02 -0500 |
parents | 3e7bf55b1bfb |
children | a96e0dd0dc33 |
line wrap: on
line source
#!/bin/bash # Run a command with sources/include.sh and an architecture loaded if [ $# -eq 0 ] then echo "Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..." >&2 exit 1 fi . sources/include.sh || exit 1 load_target "$1" shift eval "$@"