#!/usr/bin/env bash if [ -z "$1" ] then printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2 exit 1 fi # $2 netcdf-c hdf5 cd $(dirname $0) libname=$(basename $(pwd)) mkdir -p build cd build STATIC=YES FORTRAN=NO MPI=NO INSTALL_PATH="$1" NETCDF_PATH="$2" HDF5_PATH="$3" ../cmake-exodus make -j8 make install