added curl to try and get hdf4 test files
#!/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.
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"
