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

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