compil.sh
924 Bytes
#!/bin/sh
export INSTALL_DIR="/opt/local"
export DDSERVICE_URL="http://amdadev.fr/DDService"
export DDRESPATH="/var/amda-data/"
export DDBASEDATA="/home/budnik/AMDA-NG.core/DDBASE/DATA"
export DDBASEINFO="/home/budnik/AMDA-NG.core/DDBASE/INFO"
#export PROXY_HOST=""
#export PROXY_USERPWD=""
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}"
if [ -n "$PROXY_HOST" ]
then
echo "Proxy host : ${PROXY_HOST}"
fi
if [ -n "$PROXY_USERPWD" ]
then
echo "Proxy user/pwd : ${PROXY_USERPWD}"
fi
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