summaryrefslogtreecommitdiff
path: root/manualPorts/hdf5/lastVersion.sh
blob: fdd4b1ecff6fd0596b9348b0bb01392819a93025 (plain)
1
2
3
4
5
6
7
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