summaryrefslogtreecommitdiff
path: root/manualPorts/fpc-src-ewetools/lastVersion.sh
blob: c798a6ad3de191ae00e6e2ad43ad75f412d1e9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

curl -Ss "https://git.eckner.net/Erich/units/refs/" | \
  tr '<>' '\n' | \
  sed -n "
    s,^a href='/Erich/units/snapshot/units-\([0-9.]\+\)\.tar\.xz'$,\1,
    T
    p
  " | \
  sort -V | \
  tail -n1