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

curl 'https://github.com/lz4/lz4/releases/' 2> /dev/null | \
  tr '"<>' '\n' | \
  sed '
    s,^/lz4/lz4/archive/refs/tags/v\([0-9.]\+\)\.tar\.gz$,\1,
    t
    d
  ' | \
  sort -V | \
  tail -n1