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"
36 echo " 4. Single deployment"
38 echo " target_directory:"
40 echo " Non existing directory to install the stuff"
42 echo "-----------------------------------------------------------"
44 [ "$type" = "" ] && { echo "Which one you want to deploy [1]:" ; read type ; }
45 [ "$type" = "" ] && type=1
49 echo "Selected Client-Server"
50 DEPLOY_DIR__dflt=$HOME/ADML-clientAndServer
54 echo "Selected Client-Server FT"
55 DEPLOY_DIR__dflt=$HOME/ADML-ftclientAndServer
59 echo "Selected Client-Servers ST"
60 DEPLOY_DIR__dflt=$HOME/ADML-stclientAndServers
64 echo "Selected single deployment"
65 DEPLOY_DIR__dflt=$HOME/ADML-single
69 echo "Unknown option!"
76 [ "$target" = "" ] && { echo "Directory for deploy [$DEPLOY_DIR__dflt]:" ; read target ; }
77 [ "$target" = "" ] && target=$DEPLOY_DIR__dflt
78 [ -d $target ] && _exit "The directory '$target' already exists !"
79 echo "Target directory: $target"
83 $DEPLOY_SCR b $target/ADML-client
84 $DEPLOY_SCR b $target/ADML-server
85 echo "Configuring ..."
86 cd $target/ADML-client
87 echo c | ./configure.sh >/dev/null
89 cd $target/ADML-server
90 echo s | ./configure.sh >/dev/null
95 $DEPLOY_SCR f $target/ADML-ft-client
96 $DEPLOY_SCR b $target/ADML-server
97 echo "Configuring ..."
98 cd $target/ADML-server
99 echo s | ./configure.sh >/dev/null
104 $DEPLOY_SCR s $target/ADML-st-client
105 $DEPLOY_SCR b $target/ADML-serverGx
106 $DEPLOY_SCR b $target/ADML-serverRx
107 echo "Configuring ..."
108 cd $target/ADML-serverGx
109 echo s | ./configure.sh >/dev/null
110 sed -i 's/3868/3869/' services.xml
112 ln -sf stack_examples/other/16777238.xml dictionary.xml
114 cd $target/ADML-serverRx
115 echo s | ./configure.sh >/dev/null
117 ln -sf stack_examples/other/16777236.xml dictionary.xml
122 $DEPLOY_SCR b $target
123 echo "Configuring ..."
125 echo d | ./configure.sh >/dev/null