mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
added curl to try and get hdf4 test files
This commit is contained in:
parent
140967e174
commit
00a43c5374
@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
#Q=-q
|
||||
|
||||
# This shell gets some sample HDF4 files from the netCDF ftp site for
|
||||
# testing. Then it runs program tst_interops3 on the test file to
|
||||
# check that HDF4 reading works.
|
||||
@ -11,6 +9,9 @@
|
||||
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
. ../test_common.sh
|
||||
|
||||
# Uncomment for quiet wget operation.
|
||||
#Q=-q
|
||||
|
||||
# Get a file from the ftp site; retry several times
|
||||
getfile() {
|
||||
FTPFILE="ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/hdf4/$1.gz"
|
||||
@ -18,7 +19,7 @@ getfile() {
|
||||
for try in 1 2 3 4 ; do # try 4 times
|
||||
|
||||
# signal success/failure
|
||||
if wget -c $Q --passive-ftp $FTPFILE ; then
|
||||
if wget -c $Q --passive-ftp $FTPFILE || curl -O $FTPFILE ; then
|
||||
return 0 # got it
|
||||
fi
|
||||
echo "wget failed: try $try"
|
||||
|
Loading…
Reference in New Issue
Block a user