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

curl -Ss 'https://joeyh.name/code/moreutils/' | \
  tr '<>' '\n' | \
  sed '
    s/^version \([0-9.]\+\)$/\1/
    t
    d
  ' | \
  sort -V | \
  tail -n1