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

curl 'https://sourceforge.net/projects/libircclient/files/libircclient/' 2> /dev/null | \
  tr '<>' '\n' | \
  grep '^a href="/projects/libircclient/files/libircclient/[0-9.]\+/"$' | \
  sed 's|^a href="/projects/libircclient/files/libircclient/\([0-9.]\+\)/"$|\1|' | \
  sort -V | \
  tail -n1