Architectures to build need to be passed as a single argument

Additional changes:
- fail if more than one argument is passed
- update comment describing script
This commit is contained in:
Frans Pop 2008-05-20 09:27:01 +00:00
parent 6d8c7bfc94
commit 5c7c79d9f1
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -e
# Script to build one arch
# Script to build images for one or more architectures and/or source
if [ -z "$CF" ] ; then
CF=CONF.sh
@ -13,8 +13,11 @@ if [ -z "$COMPLETE" ] ; then
export COMPLETE=1
fi
if [ -n "$@" ] ; then
export ARCHES="$@"
if [ $# -gt 1 ] ; then
echo "ERROR: too many arguments." >&2
exit 1
elif [ -n "$1" ] ; then
export ARCHES="$1"
fi
PATH=$BASEDIR/tools:$PATH