summaryrefslogtreecommitdiff
path: root/portsToCome/wxgtk2-8/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'portsToCome/wxgtk2-8/lastVersion.sh')
-rwxr-xr-xportsToCome/wxgtk2-8/lastVersion.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/portsToCome/wxgtk2-8/lastVersion.sh b/portsToCome/wxgtk2-8/lastVersion.sh
new file mode 100755
index 0000000..bc76e53
--- /dev/null
+++ b/portsToCome/wxgtk2-8/lastVersion.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+latestVersion="$(\
+ curl "http://sourceforge.net/projects/wxwindows/files/" 2> /dev/null | \
+ tr "\"" "\n" | \
+ grep "^/projects/wxwindows/files/2\.8\..*/\$" | \
+ sed "s|^/projects/wxwindows/files/\(.*\)/\$|\1|" | \
+ sort -V | \
+ tail -n1)"
+
+echo -n "${latestVersion}"