summaryrefslogtreecommitdiff
path: root/cpan2cruxPorts/p5-xml-simple/lastVersion.sh
blob: 45e6da7512dd8922e48ddd0d8a676432bf61ec3b (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

wget --output-document=- "http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^XML-Simple-.*\.tar\.gz\$" | \
  sed "s/^XML-Simple-\(.*\)\.tar\.gz\$/\1/" | \
  sort -V | \
  tail -n1