X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=example%2Fdiameter%2Flauncher%2FDEPLOY.sh;h=4a29575ac4991e398ad68420b850dea2da81442d;hb=52ef1b135cc2eb90d51db903acb5bf0d49013aa7;hp=efa59ce0865ed5ca7f105da22eee79187162cff4;hpb=a6974c96b83e3c9056574010a40a7eaa391e23d9;p=anna.git diff --git a/example/diameter/launcher/DEPLOY.sh b/example/diameter/launcher/DEPLOY.sh index efa59ce..4a29575 100755 --- a/example/diameter/launcher/DEPLOY.sh +++ b/example/diameter/launcher/DEPLOY.sh @@ -5,7 +5,8 @@ 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 -EXEC=/opt/bin/anna/example_diameter_launcher +#EXEC=/opt/bin/anna/example_diameter_launcher +EXEC=./debug/example_diameter_launcher DPATH_dflt=$HOME/ADL _exit () { @@ -21,9 +22,9 @@ createRunScript () { echo "EXE=\`cat .exe 2>/dev/null\`" >> run.sh echo "STARTED=\`ps -fea | grep \"\$EXE\" | grep -v grep\`" >> run.sh echo "[ \"\$EXE\" != \"\" -a \"\$STARTED\" != \"\" ] && { echo \"Already started!\"; echo \"\$STARTED\" ; exit ; }" >> run.sh - echo "pre-start.sh" >> run.sh + echo "./pre-start.sh" >> run.sh echo "> launcher.traces" >> run.sh - echo "EXE=\"ADL-launcher\"" >> run.sh + echo "EXE=\"./ADL-launcher\"" >> run.sh echo "echo \$EXE > .exe" >> run.sh echo >> run.sh echo -n "\$EXE " >> run.sh @@ -72,7 +73,8 @@ read DPATH [[ -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 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." echo "Copying ..."