6 DEPLOY_SCR=`dirname $0`/DEPLOY.sh
25 echo " ----------------------------"
26 echo " SETUPS DEPLOYMENT AUTOMATION"
27 echo " ----------------------------"
29 echo "-----------------------------------------------------------"
30 echo "Usage: $0 [type] [target_directory]"
33 echo " 1. Client and server"
34 echo " 2. Ft-client and server"
35 echo " 3. St-client and servers"
37 echo " target_directory:"
39 echo " Non existing directory to install the stuff"
41 echo "-----------------------------------------------------------"
43 [ "$type" = "" ] && { echo "Which one you want to deploy [1]:" ; read type ; }
44 [ "$type" = "" ] && type=1
48 echo "Selected Client-Server"
49 DEPLOY_DIR__dflt=$HOME/ADML-clientAndServer
53 echo "Selected Client-Server FT"
54 DEPLOY_DIR__dflt=$HOME/ADML-ftclientAndServer
58 echo "Selected Client-Servers ST"
59 DEPLOY_DIR__dflt=$HOME/ADML-stclientAndServers
63 echo "Unknown option!"
70 [ "$target" = "" ] && { echo "Directory for deploy [$DEPLOY_DIR__dflt]:" ; read target ; }
71 [ "$target" = "" ] && target=$DEPLOY_DIR__dflt
72 [ -d $target ] && _exit "The directory '$target' already exists !"
73 echo "Target directory: $target"
77 $DEPLOY_SCR b $target/ADML-client
78 $DEPLOY_SCR b $target/ADML-server
79 echo "Configuring ..."
80 cd $target/ADML-client
81 echo c | ./configure.sh >/dev/null
83 cd $target/ADML-server
84 echo s | ./configure.sh >/dev/null
89 $DEPLOY_SCR f $target/ADML-ft-client
90 $DEPLOY_SCR b $target/ADML-server
91 echo "Configuring ..."
92 cd $target/ADML-server
93 echo s | ./configure.sh >/dev/null
98 $DEPLOY_SCR s $target/ADML-st-client
99 $DEPLOY_SCR b $target/ADML-serverGx
100 $DEPLOY_SCR b $target/ADML-serverRx
101 echo "Configuring ..."
102 # cd $target/ADML-st-client
103 # ln -s services_example services
104 # mv run.sh .run-one.sh
105 # mv run_all.sh run.sh
106 # mv operation.sh .operation-one.sh
107 # mv operation_all.sh operation.sh
110 cd $target/ADML-serverGx
111 echo s | ./configure.sh >/dev/null
112 sed -i 's/3868/3869/' services.xml
114 ln -sf stacks/other_examples/16777238.xml dictionary.xml
116 cd $target/ADML-serverRx
117 echo s | ./configure.sh >/dev/null
119 ln -sf stacks/other_examples/16777236.xml dictionary.xml