mirror of https://github.com/ecmwf/eccodes.git
ECC-106 No need for trailing / in ECCODES_DEFINITION_PATH
This commit is contained in:
parent
353b6fa8f4
commit
2d59f77e0f
|
@ -15,7 +15,7 @@ REDIRECT=/dev/null
|
|||
|
||||
[ -z "$ECCODES_DEFINITION_PATH" ] | ECCODES_DEFINITION_PATH=`${tools_dir}codes_info -d`
|
||||
|
||||
for file in `find $ECCODES_DEFINITION_PATH -name '*.def' -print`
|
||||
for file in `find ${ECCODES_DEFINITION_PATH}/ -name '*.def' -print`
|
||||
do
|
||||
${tools_dir}codes_parser $file > $REDIRECT
|
||||
done
|
||||
|
|
|
@ -11,8 +11,7 @@ proj_dir=@PROJECT_SOURCE_DIR@
|
|||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
# use definitions from binary dir to test if installation will be correct
|
||||
# Note: 'definitions' is a symlink so must put final slash to interpret as directory
|
||||
def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@/"
|
||||
def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@"
|
||||
ECCODES_DEFINITION_PATH="${def_dir}"
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
||||
|
|
Loading…
Reference in New Issue