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

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