summaryrefslogtreecommitdiff
path: root/manualPorts/gengetopt/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/gengetopt/lastVersion.sh')
-rwxr-xr-xmanualPorts/gengetopt/lastVersion.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/manualPorts/gengetopt/lastVersion.sh b/manualPorts/gengetopt/lastVersion.sh
new file mode 100755
index 0000000..36f551b
--- /dev/null
+++ b/manualPorts/gengetopt/lastVersion.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+curl 'ftp://ftp.gnu.org/gnu/gengetopt/' 2> /dev/null | \
+ awk '{print $9}' | \
+ grep '^gengetopt-[0-9.]\+\.tar\.gz$' | \
+ sed 's|^gengetopt-\([0-9.]\+\)\.tar\.gz$|\1|' | \
+ sort -V | \
+ tail -n1