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

curl -Ss 'https://www.x.org/archive/individual/app/' | \
  tr '"' '\n' | \
  sed -n '
    s/^xcalc-\(.*\)\.tar\.bz2$/\1/
    T
    p
  ' | \
  sort -V | \
  tail -n1