eccodes/examples/deprecated/include.sh

38 lines
540 B
Bash
Raw Permalink Normal View History

2013-03-25 12:04:10 +00:00
set -ea
echo
echo "TEST: $0"
if [ -z "${data_dir}" ]
then
cd ../
cpath=`pwd`
ECCODES_DEFINITION_PATH=$cpath/definitions
export ECCODES_DEFINITION_PATH
ECCODES_SAMPLES_PATH=$cpath/templates
export ECCODES_SAMPLES_PATH
2017-02-03 14:21:24 +00:00
tools_dir=$cpath/tools
2017-02-03 14:29:47 +00:00
examples_dir=$cpath/examples
2013-03-25 12:04:10 +00:00
data_dir=$cpath/data
else
echo "Skipping test $0"
exit
fi
cd ${examples_dir}
if [ -z "${GRIB_API_INCLUDE}" ]
then
GRIB_API_INCLUDE=`pwd`/src
fi
if [ -z "${GRIB_API_LIB}" ]
then
GRIB_API_LIB=`pwd`/src
fi
2017-02-03 14:21:24 +00:00
#${tools_dir}/codes_info
2013-03-25 12:04:10 +00:00
set -u