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

curl "https://otr.cypherpunks.ca/index.php" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^libotr-.*\.tar\.gz\$" | \
  sed "s/^libotr-\(.*\)\.tar\.gz\$/\1/" | \
  sort -V | \
  tail -n1