changeset 1602:045160e8ad71

Better help test for build.sh
author Rob Landley <rob@landley.net>
date Mon, 17 Jun 2013 00:07:02 -0500
parents e958c89076c1
children 84bd3248fad8
files build.sh
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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