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

curl -Ss 'https://github.com/zenorogue/hyperrogue/tags' \
| sed '
  s,^.*<a href="/zenorogue/hyperrogue/releases/tag/v\([0-9]\+\.[0-9]\+[a-z]\?\)".*$,\1,
  t
  d
' \
| sort -V \
| tail -n1