summaryrefslogtreecommitdiff
path: root/uselessPorts/libmypaint/lastVersion.sh
blob: dce43b1ea7d54d5594b1d99c163e658dcebec88f (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

curl 'https://github.com/mypaint/libmypaint/releases' 2> /dev/null | \
  tr '"' '\n' | \
  grep '^/mypaint/libmypaint/archive/v[0-9.-]*\(-beta[.0-9]*\)\?\.tar\.gz' | \
  sed "s|^/mypaint/libmypaint/archive/v\(.*\)\.tar\.gz\$|\1|" | \
  sort -V | \
  tail -n1