]> sourceware.org Git - cgen.git/commitdiff
add usage info
authorDoug Evans <xdje42@gmail.com>
Sat, 23 Jan 2010 19:57:20 +0000 (19:57 +0000)
committerDoug Evans <xdje42@gmail.com>
Sat, 23 Jan 2010 19:57:20 +0000 (19:57 +0000)
ChangeLog
gen-all

index 2d768d2449b0e9f6283d80509ed3e79e2c9e9599..50281613ef47f0233d8be5f36099105744d67530 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2010-01-23  Doug Evans  <dje@sebabeach.org>
 
        * gen-all: Move build-configuration related parameters to an
-       external file.
+       external file.  Add usage info.
 
        * doc/rtl.texi (Expressions): Add more docs on conversion functions.
 
diff --git a/gen-all b/gen-all
index 86dee1394d6945fa7ef562f464a744612b1f31a6..f02051d3b3e241085fac82f83b6ec707624382f4 100644 (file)
--- a/gen-all
+++ b/gen-all
@@ -31,6 +31,31 @@ fi
 
 source ./gen-all.rc
 
+usage() {
+    echo "Usage:"
+    echo "  gen-all help"
+    echo "  gen-all [options] [todos] [apps]"
+    echo "  gen-all all"
+    echo ""
+    echo "Options:"
+    echo "cpus=\"space-separated-list-of-cpus\""
+    echo ""
+    echo "Things-to-do:"
+    echo "config   Configure the tree"
+    echo "build    Build the tree"
+    echo "diffs    Generate diffs from what's checked in"
+    echo ""
+    echo "Applications:"
+    echo "binutils, gcc, newlib, sim, sid, intrinsics"
+    echo ""
+    echo "Notes:"
+    echo "\"all\" can be specified which means \"all of the above\""
+    echo "Options, todos, and apps may be specified in any order."
+    echo ""
+    echo "Example:"
+    echo "sh gen-all build binutils diffs cpus=m32r"
+}
+
 # Parameters to configure.
 MPC_CONFIG="--with-mpc=${MPC_DIR}"
 
@@ -62,6 +87,7 @@ sid_cpus="${all_sid_cpus}"
 for a in "$@"
 do
     case $a in
+    help) usage ; trap "" 0 ; exit 0 ;;
     cpus=*) cgen_cpus=${a/cpus=} sid_cpus=${cgen_cpus} ;;
     config) do_config=yes ;;
     build) do_build=yes ;;
This page took 0.052352 seconds and 5 git commands to generate.