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