summaryrefslogtreecommitdiff
path: root/manualPorts/hdf5/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/hdf5/lastVersion.sh')
-rwxr-xr-xmanualPorts/hdf5/lastVersion.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/manualPorts/hdf5/lastVersion.sh b/manualPorts/hdf5/lastVersion.sh
new file mode 100755
index 0000000..fdd4b1e
--- /dev/null
+++ b/manualPorts/hdf5/lastVersion.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+curl -Ss 'https://support.hdfgroup.org/ftp/HDF5/current/src/' | \
+ tr '<>' '\n' | \
+ grep '^hdf5-[0-9.]\+\.tar\.gz$' | \
+ sed 's/^hdf5-\([0-9.]\+\)\.tar\.gz$/\1/' | \
+ sort -V | \
+ tail -n1