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

curl -Ss 'https://github.com/CGAL/cgal/releases' \
| tr '"' '\n' \
| sed '
  s@^/CGAL/cgal/releases/download/v\([0-9.]\+\)/CGAL-\1\.tar\.xz$@\1@
  t
  d
' \
| sort -V \
| tail -n1