ECC-1369: handle_new_from_samples: Allow sample file to include its extension

This commit is contained in:
Shahram Najm 2022-03-14 15:38:59 +00:00
parent aa7e202083
commit 19b63aa4b1
1 changed files with 4 additions and 3 deletions

View File

@ -15,13 +15,14 @@ temp=temp.$label
# Sample files
# ----------------
${tools_dir}/codes_export_resource -s GRIB2 $temp
cmp $ECCODES_SAMPLES_PATH/GRIB2.tmpl $temp
# ECC-1369: Include the extension
f='GRIB2.tmpl'
${tools_dir}/codes_export_resource -s $f $temp
cmp $ECCODES_SAMPLES_PATH/$f $temp
# Use the shortened form
${tools_dir}/codes_export_resource -s GRIB2 $temp
cmp $ECCODES_SAMPLES_PATH/GRIB2.tmpl $temp
# IFS Samples
# ----------------