# HG changeset patch # User Rob Landley # Date 1323227759 21600 # Node ID 9c2b7ec6b0c73575f215d55e94cb2f7df5b2c2c8 # Parent 95f662f66fe405866433a02e6ef2e5f6928461cf Optional second argument to build.sh indicates which stage to start rebuilding from after a successful first build. diff -r 95f662f66fe4 -r 9c2b7ec6b0c7 build.sh --- 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