projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove stupid trace
[anna.git]
/
example
/
diameter
/
launcher
/
DEPLOY.sh
diff --git
a/example/diameter/launcher/DEPLOY.sh
b/example/diameter/launcher/DEPLOY.sh
index
c6d58f1
..
bc76bbd
100755
(executable)
--- a/
example/diameter/launcher/DEPLOY.sh
+++ b/
example/diameter/launcher/DEPLOY.sh
@@
-5,9
+5,9
@@
SETUPS_DIR=../../../source/diameter/stack/setups
MSGDTD=../../../include/anna/diameter/codec/message.dtd
DCTDTD=../../../include/anna/diameter/stack/dictionary.dtd
BASE_PROT=commands_baseProtocol.xml
MSGDTD=../../../include/anna/diameter/codec/message.dtd
DCTDTD=../../../include/anna/diameter/stack/dictionary.dtd
BASE_PROT=commands_baseProtocol.xml
-#EXEC=/opt/bin/anna/example_diameter_launcher
EXEC=./debug/example_diameter_launcher
DPATH_dflt=$HOME/ADL
EXEC=./debug/example_diameter_launcher
DPATH_dflt=$HOME/ADL
+RESOURCES_DIR=resources
_exit () {
echo
_exit () {
echo
@@
-39,8
+39,7
@@
createRunScript () {
createDictionaryPaths () {
createDictionaryPaths () {
-
-for i in stacks/*commands*xml
+ for i in stacks/*commands*xml
do
stacks/dependence.sh $i >/dev/null
stack=`basename $i`
do
stacks/dependence.sh $i >/dev/null
stack=`basename $i`
@@
-57,6
+56,9
@@
for i in stacks/*commands*xml
# Default:
ln -s .dictionary__commands_qosControl.xml .dictionary
# Default:
ln -s .dictionary__commands_qosControl.xml .dictionary
+
+ # Remove deps:
+ rm -f stacks/*.dep
}
#############
}
#############
@@
-73,24
+75,30
@@
read DPATH
[[ -d $DPATH ]] && _exit "The path '$DPATH' already exists. Remove it before continue..."
echo "Basic checkings ..."
[[ -d $DPATH ]] && _exit "The path '$DPATH' already exists. Remove it before continue..."
echo "Basic checkings ..."
-#[[ ! -f $EXEC ]] && _exit "Anna Diameter Launcher (ADL) is not installed in the system. Execute 'sudo scons install' for 'anna' suite."
[[ ! -f $EXEC ]] && _exit "Anna Diameter Launcher (ADL) is not linked. Execute 'scons' for 'anna' suite."
[[ ! -d $SETUPS_DIR ]] && _exit "Diameter stacks not found ($SETUPS_DIR). Perhaps you executed this script out of its parent path."
[[ ! -f $EXEC ]] && _exit "Anna Diameter Launcher (ADL) is not linked. Execute 'scons' for 'anna' suite."
[[ ! -d $SETUPS_DIR ]] && _exit "Diameter stacks not found ($SETUPS_DIR). Perhaps you executed this script out of its parent path."
+echo
+echo "Deploy (f)ull version or (l)ite version [l]:"
+read deploy_type
+[[ "$deploy_type" = "" ]] && deploy_type=l
+[[ "$deploy_type" = "l" ]] && RESOURCES_DIR=resources_lite
+
echo "Copying ..."
mkdir -p $DPATH
mkdir -p $DPATH/stacks
echo "Copying ..."
mkdir -p $DPATH
mkdir -p $DPATH/stacks
+mkdir -p $DPATH/DTDs
cp $EXEC $DPATH/ADL-launcher
cp $EXEC $DPATH/ADL-launcher
-cp
resources
/* $DPATH
+cp
-r $RESOURCES_DIR
/* $DPATH
cp $SETUPS_DIR/*xml $DPATH/stacks
cp $SETUPS_DIR/*sh $DPATH/stacks
cp $SETUPS_DIR/readme.txt $DPATH/stacks
cp $SETUPS_DIR/*xml $DPATH/stacks
cp $SETUPS_DIR/*sh $DPATH/stacks
cp $SETUPS_DIR/readme.txt $DPATH/stacks
-cp $MSGDTD $DPATH
-cp $DCTDTD $DPATH
+cp $MSGDTD $DPATH
/DTDs
+cp $DCTDTD $DPATH
/DTDs
echo "Preparing ..."
cd $DPATH
echo "Preparing ..."
cd $DPATH
-createRunScript
+
[[ "$deploy_type" != "l" ]] &&
createRunScript
createDictionaryPaths
cd - >/dev/null
createDictionaryPaths
cd - >/dev/null