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

curl "http://www.hashcash.org/source/" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^hashcash-[0-9.-]*\.tgz\$" | \
  sed "s|^hashcash-\(.*\)\.tgz\$|\1|" | \
  sort -V | \
  tail -n1