summaryrefslogtreecommitdiff
path: root/portsToCome/wxgtk2-8/lastVersion.sh
blob: bc76e530191b5e132df688c2b64c0c3385a506eb (plain)
1
2
3
4
5
6
7
8
9
10
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}"