You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/12/08 07:45:49 UTC

svn commit: r355010 - /lenya/trunk/lenya.sh

Author: michi
Date: Wed Dec  7 22:45:42 2005
New Revision: 355010

URL: http://svn.apache.org/viewcvs?rev=355010&view=rev
Log:
default action servlet added

Modified:
    lenya/trunk/lenya.sh

Modified: lenya/trunk/lenya.sh
URL: http://svn.apache.org/viewcvs/lenya/trunk/lenya.sh?rev=355010&r1=355009&r2=355010&view=diff
==============================================================================
--- lenya/trunk/lenya.sh (original)
+++ lenya/trunk/lenya.sh Wed Dec  7 22:45:42 2005
@@ -63,10 +63,17 @@
     exit 1
 }
 
-[ $# -gt 0 ] || usage
+#[ $# -gt 0 ] || usage
 
+DEFAULT_ACTION="servlet"
 ACTION=$1
-shift
+if [ -n "$ACTION" ]
+then
+  shift
+else
+  ACTION=$DEFAULT_ACTION
+  echo "$0: executing default action '$ACTION', use -h to see other actions"
+fi
 ARGS="$*"
 
 # ----- Verify and Set Required Environment Variables -------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org