From b526ec623f55d7fbac8247cb20581e9734546af1 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Tue, 8 Jan 2013 22:37:11 +1100 Subject: [PATCH] package netcdf: add update script --- src/netcdf.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/netcdf.mk b/src/netcdf.mk index d9587d6f..b59397ef 100644 --- a/src/netcdf.mk +++ b/src/netcdf.mk @@ -10,8 +10,11 @@ $(PKG)_URL := http://www.unidata.ucar.edu/downloads/netcdf/ftp/$($(PKG)_FIL $(PKG)_DEPS := gcc curl zlib hdf4 hdf5 define $(PKG)_UPDATE - echo 'TODO: write update script for $(PKG).' >&2; - echo $($(PKG)_VERSION) + $(WGET) -q -O- 'http://www.unidata.ucar.edu/downloads/netcdf/index.jsp' | \ + grep netcdf | \ + $(SED) -n 's,.*href="netcdf-\([0-9_]*\)">.*,\1,p' | \ + head -1 | \ + tr '_' '.' endef # NetCDF uses '#ifdef IGNORE' as a synonym to '#if 0' in several places.