Mercurial > hg > aboriginal
diff build.sh @ 1602:045160e8ad71
Better help test for build.sh
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 17 Jun 2013 00:07:02 -0500 |
parents | 9c2b7ec6b0c7 |
children | dcb7e74a7a71 |
line wrap: on
line diff
--- a/build.sh Tue Jun 04 07:48:16 2013 -0500 +++ b/build.sh Mon Jun 17 00:07:02 2013 -0500 @@ -35,10 +35,15 @@ if [ $# -lt 1 ] || [ $# -gt 2 ] || [ ! -e sources/targets/"$1" ] then + echo echo "Usage: $0 TARGET [REBUILD_FROM_STAGE]" - + echo echo "Supported architectures:" ls sources/targets + echo + echo "Build stages:" + sed -n 's/#.*//;s@.*[.]/\([^.]*\)[.]sh.*@\1@p' "$0" | uniq | xargs echo + echo exit 1 fi