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

curl "ftp://ftp.gnu.org/gnu/texinfo/" 2> /dev/null | \
  awk '{print $9}' | \
  grep "^texinfo-[0-9.-]*\.tar\.xz\$" | \
  sed "s|^texinfo-\([0-9.-]*\)\.tar\.xz\$|\1|" | \
  sort -V | \
  tail -n1