Dynamic realm registration
[anna.git] / example / diameter / launcher / DEPLOY_clientAndServer.sh
index c8bf3e6..628c223 100755 (executable)
@@ -4,13 +4,14 @@
 # VARIABLES #
 #############
 DEPLOY_SCR=`dirname $0`/DEPLOY.sh
+DEPLOY_DIR__dflt=$HOME/ADML
 
 #############
 # FUNCTIONS #
 #############
 usage() {
   echo
-  echo "Usage: $0 <empty directory>"
+  echo "Usage: $0 [empty directory: '$DEPLOY_DIR__dflt' by default]"
   echo
   exit 1
 }
@@ -19,7 +20,7 @@ usage() {
 # EXECUTION #
 #############
 DIR=$1
-[ "$DIR" = "" ] && usage
+[ "$DIR" = "" ] && DIR=$DEPLOY_DIR__dflt
 [ -d $DIR ] && usage
 
 $DEPLOY_SCR b $DIR/client