summaryrefslogtreecommitdiff
path: root/manualPorts/opencsg/lastVersion.sh
blob: ee27bd98742aeab68b0caca4ce12fde9a57fd826 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

curl -Ss 'http://www.opencsg.org/' \
| sed '
  s@^.*<a href="https://www\.opencsg\.org/OpenCSG-\([0-9.]\+\)\.tar\.gz">.*$@\1@
  t
  d
' \
| sort -V \
| tail -n1