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/20 15:41:45 UTC

svn commit: r357997 - /lenya/branches/BRANCH_1_2_X/lenya.sh

Author: michi
Date: Tue Dec 20 06:41:42 2005
New Revision: 357997

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

Modified:
    lenya/branches/BRANCH_1_2_X/lenya.sh

Modified: lenya/branches/BRANCH_1_2_X/lenya.sh
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/lenya.sh?rev=357997&r1=357996&r2=357997&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/lenya.sh (original)
+++ lenya/branches/BRANCH_1_2_X/lenya.sh Tue Dec 20 06:41: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