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

curl "http://ftp.gnu.org/gnu/help2man/" 2> /dev/null | \
  tr "<>" "\n\n" | \
  grep "^help2man-[0-9.]\+\.tar\.xz\$" | \
  sed "s/^help2man-\([0-9.]\+\)\.tar\.xz\$/\1/" | \
  sort -V | \
  tail -n1