You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by st...@apache.org on 2006/10/26 08:22:30 UTC

svn commit: r467887 - /gump/trunk/gump

Author: stefano
Date: Wed Oct 25 23:22:29 2006
New Revision: 467887

URL: http://svn.apache.org/viewvc?view=rev&rev=467887
Log:
making the gump script a little more user friendly in case you don't know how to use it
also removed the fetch-metadata command that is now obsolete

Modified:
    gump/trunk/gump

Modified: gump/trunk/gump
URL: http://svn.apache.org/viewvc/gump/trunk/gump?view=diff&rev=467887&r1=467886&r2=467887
==============================================================================
--- gump/trunk/gump (original)
+++ gump/trunk/gump Wed Oct 25 23:22:29 2006
@@ -65,7 +65,7 @@
       Usage:
         $0 integration-test [gump.py-args ...]
 "
-		;;
+        ;;
     site)
       echo "
       Use Apache Forrest to build the documentation.
@@ -82,14 +82,6 @@
         $0 site-publish
 "
       ;;
-    get-metadata)
-      echo "
-      Use CVS to check out or update the metadata.
-
-      Usage:
-        $0 get-metadata [CVSROOT]
-"
-      ;;
     validate)
       echo "
       Run the DTD validation tools on the metadata.
@@ -108,26 +100,29 @@
       ;;
     *)
       echo "
-      Utility commandline interface for Gump.
-     
-      Usage:
-        $0 command [opts ...]
-     
-      Available commands are:
-     
-        run -- run Gumpy
-        test -- run Gumpy its unit tests
-        get-metadata -- Check out or update metadata from CVS
-        validate -- validate the metadata
-        help -- print this information
-        site -- use Apache Forrest to build the documentation
-        site-publish -- use SVN and SSH to publish the site to the website
-     
-      Run
-     
-        $0 help [command]
-     
-      for more information about a particular command.
+     _____
+    |   __|_ Apache_ ___ 
+    |  |  | | |     | . |
+    |_____|___|_|_|_|  _|
+                    |_|
+ 
+  Usage:
+    $0 command [opts ...]
+ 
+  Available commands are:
+ 
+    run -- run Gumpy
+    test -- run Gumpy its unit tests
+    validate -- validate the metadata
+    site -- use Apache Forrest to build the documentation
+    site-publish -- use SVN and SSH to publish the site to the website
+    help -- print this information
+ 
+  Run
+ 
+    $0 help [command]
+ 
+  for more information about a particular command.
 "
       ;;
   esac
@@ -140,8 +135,7 @@
 # Print an error message and then exit.
 function error
 {
-  echo "$0: $1"
-#  usage
+  echo "$1"
   exit 1
 }
 
@@ -227,9 +221,9 @@
   local command=$1
   shift
 
-  if [[ -z "$command" ]]; then
-    error "Illegal command '$command'"
-  fi
+#  if [[ -z "$command" ]]; then
+#    error "Illegal command '$command'"
+#  fi
 
   # delegate to the command handling functions
   case $command in
@@ -252,9 +246,6 @@
     site-publish)
       site_publish $@
       ;;
-    get-metadata)
-      get_metadata $@
-      ;;
     validate)
       validate $0
       ;;
@@ -265,7 +256,7 @@
       experimental_tests $@
       ;;
     '')
-      error "Please specify a command"
+      usage $@
       ;;
     *)
       error "Unknown command '$command'"
@@ -425,19 +416,3 @@
 
 # Figure out the action to take then run the appropriate function
 delegate $@
-
-#############################################################################
-# And some mess below...
-#############################################################################
-
-#option=$@
-#previous_argument=
-#for option
-#do
-   # get argument to options with arguments
-#  if test -n "$previous_argument"; then
-#    eval "$previous_argument=\$option"
-#    previous_argument=
-#    continue
-#  fi
-#done