X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeploy-aots.sh;h=d94757882fcb00fb3565f4c2ed14a4dc2ed537b3;hb=c56124ff93e8bceec159748dfe5ba8d56c62e3de;hp=8a7f8b734b578e6f759c65bfcd6a97f02edb411e;hpb=2e2f6d4e2ffe1c8b86c812807f0e501ab78f56f9;p=anna.git diff --git a/example/diameter/launcher/deploy-aots.sh b/example/diameter/launcher/deploy-aots.sh index 8a7f8b7..d947578 100755 --- a/example/diameter/launcher/deploy-aots.sh +++ b/example/diameter/launcher/deploy-aots.sh @@ -35,20 +35,20 @@ echo build_type_letter=$(echo $VARIANT | cut -c1 | tr '[:upper:]' '[:lower:]') version__dflt=v"`date +'%y'`.`date +'%m'`.`date +'%d'`$build_type_letter" -INSTALL_AOTS__dflt=$HOME/3rdParty/anna-aots-builds/v"`date +'%y'`.`date +'%m'`.`date +'%d'`$build_type_letter" +INSTALL__dflt=$HOME/3rdParty/anna-aots-builds/v"`date +'%y'`.`date +'%m'`.`date +'%d'`$build_type_letter" -echo "Choose the target path for installation [$INSTALL_AOTS__dflt]:" +echo "Choose the target path for installation [$INSTALL__dflt]:" echo " (enter a non-existent directory)" -read INSTALL_AOTS -[ -z "$INSTALL_AOTS" ] && INSTALL_AOTS=$INSTALL_AOTS__dflt -INSTALL_AOTS=`readlink -m $INSTALL_AOTS` -[ -d $INSTALL_AOTS ] && _exit "The target installation directory ($INSTALL_AOTS) already exists ! (if you want to reinstall, remove it first)" +read INSTALL +[ -z "$INSTALL" ] && INSTALL=$INSTALL__dflt +INSTALL=`readlink -m $INSTALL` +[ -d $INSTALL ] && _exit "The target installation directory ($INSTALL) already exists ! (if you want to reinstall, remove it first)" echo echo "Stage 1: Deploying resources ......................" echo -mkdir -p $INSTALL_AOTS -cp -r $SCR_DIR/deployments/aots/* $INSTALL_AOTS +mkdir -p $INSTALL +cp -rL $SCR_DIR/deployments/aots-setup/* $INSTALL # VARIABLES ###################################### # Sources: @@ -57,7 +57,7 @@ BIN_DIR=${PROJECT_ROOT}/build/$VARIANT/bin LIB_DIR=${PROJECT_ROOT}/build/$VARIANT/lib # Targets: -ADML=${INSTALL_AOTS}/agents/ADML +ADML=${INSTALL}/agents/ADML DTDs=${ADML}/DTDs DYNLIBS=${ADML}/dynlibs ################################################## @@ -71,7 +71,7 @@ mkdir -p ${ADML}/counters mkdir -p ${ADML}/test-reports # Scripts: -cp ${PROJECT_ROOT}/example/diameter/launcher/resources/scripts/operation_signal.sh ${ADML}/operation.sh +cp ${PROJECT_ROOT}/example/diameter/launcher/resources/scripts/operation.sh ${ADML} # Templates: mkdir $DTDs @@ -106,5 +106,8 @@ cd ${DYNLIBS} ln -sf default/libanna_launcher_procedure_default_shared.so cd - >/dev/null +# Help +cp ${PROJECT_ROOT}/example/diameter/launcher/resources/HELP.md ${ADML} + _exit "Done!" 0