diff --git a/distro/scripts/adl_cots.sh b/distro/scripts/adl_cots.sh index aa9265e46b436f887f08c3e60adf3f53212b4744..c70fe70cb6c69e81a06c5566a4b872933942ac07 100755 --- a/distro/scripts/adl_cots.sh +++ b/distro/scripts/adl_cots.sh @@ -55,7 +55,7 @@ echo $COTS_HOME export ADL_COTS=${COTS_HOME}/tars -export USER_COTS_PATH=${COTSBASE}/local +export USER_COTS_PATH=${COTSBASE}/libexec export BUILD=${COTSBASE}/build echo "LD_RUN_PATH" $LD_RUN_PATH @@ -542,6 +542,85 @@ all() echo "COTS Built" } +adl() +{ + + + +export COTS_PYTHON_HOME=/user/libexec +### end replace + +export COTS_HOME=$1 +export COTSBASE=$2 +export ADL_HOME=$3 + +#echo "COTS_HOME" ${COTS_HOME} +#ls ${COTS_HOME} +#echo "COTSBASE" ${COTSBASE} +#ls ${COTSBASE} +#echo "ADL_HOME" ${ADL_HOME} +#ls ${ADL_HOME} + +shift 2 +echo $@ + +export ADL_INSTALL=${ADL_HOME} +export USER_COTS_PATH=${COTSBASE}/libexec +export BUILD=${COTSBASE}/build +export JAVA_COTS=${COTSBASE}/JAVA_COTS +export JAVA_JARS=${JAVA_COTS} + +make_dir() { + DIR=$1 + if [ ! -e ${DIR} ]; then + echo "Directory " ${DIR} "does not exit. Make it now" + mkdir -p ${DIR} + if [ $? -ne 0 ]; then + exit 1 + fi + fi +} + +# directories not kept in repo +mkdir -p ${ADL_HOME}/data/MSD_LZ/AUX +mkdir -p ${ADL_HOME}/tools/bin +mkdir -p ${ADL_HOME}/bin/ +mkdir -p ${ADL_HOME}/perl/modules/PRO/SrcAutogen/src +mkdir -p ${ADL_HOME}/CMN/SrcAutogen/src + +echo "Made directories" +ls -al ${ADL_HOME}/CMN/SrcAutogen/src + +# gcc netos6 Comment these out for buildbucket +export CC="gcc" +export CPP="cpp" +export CXX="g++" +export FORTRAN="gfortran" +export FC="gfortran" +# gcc netos6 Comment above out for buildbucket + +#CC, FC, CXX, F90, F77, F9X + +#gcc buildbucket +export FORTRAN=${FC} + +export F77=${FORTRAN} +export FC=${FORTRAN} +export LOADER=${FORTRAN} +export F77_COMPILER=${FORTRAN} +export F90_COMPILER=${FORTRAN} +export F95_COMPILER=${FORTRAN} +export CPP_COMPILER=${FORTRAN} +export F90=${FORTRAN} + +ln -s /usr/bin/python3 /usr/libexec//bin/python3 +cd ${ADL_HOME} && + export PATH=${ADL_HOME}/bin:/usr/libexec/bin:$PATH && + source build/envSetup.sh && + export COTS_PYTHON=/usr/libexec/ && + ./buildAdl.sh 2>&1 | tee ${COTS_HOME}/build_adl.log +} + wipe all diff --git a/distro/scripts/adl_java.sh b/distro/scripts/adl_java.sh new file mode 100755 index 0000000000000000000000000000000000000000..3db0f0327f1120ea88fafbe2012408060603512e --- /dev/null +++ b/distro/scripts/adl_java.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +COTS_HOME=/csppbinaries/cspp-sdr-binary/distro/ +COTSBASE=/CSPP_SDR_4_0 + +mkdir -p ${COTSBASE} + +export ADL_COTS=${COTS_HOME}/tars +export JAVA_COTS=${COTSBASE}/JAVA_COTS +export JAVA_JARS=${JAVA_COTS}/jars + +make_dir() { + DIR=$1 + if [ ! -e ${DIR} ]; then + echo "Directory " ${DIR} "does not exit. Make it now" + mkdir -p ${DIR} + if [ $? -ne 0 ]; then + exit 1 + fi + fi +} + +all() { + echo ${JAVA_JARS} + make_dir ${JAVA_COTS} && + make_dir ${JAVA_JARS} && + cd ${JAVA_COTS} && + # install jar files needed for ADL editorq + tar xf ${ADL_COTS}/jdk-8u73-linux-x64.gz && + tar xf ${ADL_COTS}/apache-ant-1.9.3-bin.tar.gz && + tar xf ${ADL_COTS}/commons-beanutils-1.9.2-bin.tar.gz && + tar xf ${ADL_COTS}/commons-digester3-3.0-bin.tar.gz && + unzip ${ADL_COTS}/swingx-1.6.2-bundle.zip && + tar xf ${ADL_COTS}/apache-log4j-2.10.0-bin.tar.gz && + mv ${JAVA_COTS}/apache-log4j-2.10.0-bin ${JAVA_COTS}/apache-log4j-2.10.0 && + cd ${JAVA_JARS} && + tar xf ${ADL_COTS}/commons-codec-1.3.tar.gz && + echo "Java cots installed" +} + +all diff --git a/distro/tars/apache-ant-1.9.3-bin.tar.gz b/distro/tars/apache-ant-1.9.3-bin.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..dd4badd471652f0d63470197d1a360894f100f63 Binary files /dev/null and b/distro/tars/apache-ant-1.9.3-bin.tar.gz differ diff --git a/distro/tars/apache-log4j-2.10.0-bin.tar.gz b/distro/tars/apache-log4j-2.10.0-bin.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..56048af20a46ed68bc537fd96be85e5a01c7b256 Binary files /dev/null and b/distro/tars/apache-log4j-2.10.0-bin.tar.gz differ diff --git a/distro/tars/commons-beanutils-1.9.2-bin.tar.gz b/distro/tars/commons-beanutils-1.9.2-bin.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..9d3872f261ff1d974c4a3e899581c482f66caf21 Binary files /dev/null and b/distro/tars/commons-beanutils-1.9.2-bin.tar.gz differ diff --git a/distro/tars/commons-codec-1.3.tar.gz b/distro/tars/commons-codec-1.3.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..2f439b9b4d059b59bd1dce1a0f397ac4708e7ec7 Binary files /dev/null and b/distro/tars/commons-codec-1.3.tar.gz differ diff --git a/distro/tars/commons-digester3-3.0-bin.tar.gz b/distro/tars/commons-digester3-3.0-bin.tar.gz new file mode 100755 index 0000000000000000000000000000000000000000..0e5fc2d7b585ba198b8b8604357b05229f2c9ad3 Binary files /dev/null and b/distro/tars/commons-digester3-3.0-bin.tar.gz differ diff --git a/distro/tars/jdk-8u73-linux-x64.gz b/distro/tars/jdk-8u73-linux-x64.gz new file mode 100755 index 0000000000000000000000000000000000000000..eb7b63937b90e0a9c951e1e317e425a7923d63c7 Binary files /dev/null and b/distro/tars/jdk-8u73-linux-x64.gz differ diff --git a/distro/tars/swingx-1.6.2-bundle.zip b/distro/tars/swingx-1.6.2-bundle.zip new file mode 100755 index 0000000000000000000000000000000000000000..40373e851ff5a03faf7f7c8a191bfab7ece46630 Binary files /dev/null and b/distro/tars/swingx-1.6.2-bundle.zip differ