summaryrefslogtreecommitdiff
path: root/manualPorts/pcsc-lite/lastVersion.sh
blob: 7590d3834ff27c9f9b54d379a8dec570b052b4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

curl -Ss 'https://pcsclite.apdu.fr/files/' | \
  tr '<>' '\n' | \
  sed -n '
    s/^a href="pcsc-lite-\([0-9.]\+\)\.tar\.bz2"$/\1/
    T
    p
  ' | \
  sort -V | \
  tail -n1