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

curl 'https://www.intra2net.com/en/developer/libftdi/download.php' 2> /dev/null | \
  tr '"' '\n' | \
  grep '^download/libftdi1-[0-9.]\+\.tar\.bz2$' | \
  sed 's|^download/libftdi1-\([0-9.]\+\)\.tar\.bz2$|\1|' | \
  sort -V | \
  tail -n1