Mercurial > hg > aboriginal
diff build.sh @ 1471:9c2b7ec6b0c7
Optional second argument to build.sh indicates which stage to start rebuilding from after a successful first build.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 06 Dec 2011 21:15:59 -0600 |
parents | 60f1087591ac |
children | 045160e8ad71 |
line wrap: on
line diff
--- a/build.sh Tue Dec 06 08:25:48 2011 -0600 +++ b/build.sh Tue Dec 06 21:15:59 2011 -0600 @@ -31,9 +31,11 @@ # If this script was run with no arguments, list available architectures -if [ $# -ne 1 ] || [ ! -e sources/targets/"$1" ] +[ ! -z "$2" ] && REBUILD="$2" + +if [ $# -lt 1 ] || [ $# -gt 2 ] || [ ! -e sources/targets/"$1" ] then - echo "Usage: $0 TARGET" + echo "Usage: $0 TARGET [REBUILD_FROM_STAGE]" echo "Supported architectures:" ls sources/targets