compil.sh 718 Bytes
#!/bin/sh

export INSTALL_DIR="/opt/local"
export DDSERVICE_URL="http://apus.irap.omp.eu/NEWAMDA/DDService"
export DDRESPATH="/home/budnik/DDBASE"
export DDBASEDATA="/home/budnik/DDBASE/DATA"
export DDBASEINFO="/home/budnik/DDBASE/INFO"

echo "Install dir. : ${INSTALL_DIR}"
echo "DDService Url : ${DDSERVICE_URL}"
echo "DD.res path : ${DDRESPATH}"
echo "DDBASE DATA path : ${DDBASEDATA}"
echo "DDBASE INFO path : ${DDBASEINFO}"
read -p "Press any key to continue..."

export NETCDF_ROOT=$INSTALL_DIR
export DDCLIENT_ROOT=$INSTALL_DIR

cmake -E make_directory build
cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
cmake --build build
sudo make -C build install VERBOSE=1