| 1 | #!/bin/bash |
| 2 | |
| 3 | releases="$( grep --invert-match -P '^#' versions )" |
| 4 | [ -d local/cache/SHANCOCK ] || mkdir -p local/cache/SHANCOCK |
| 5 | for rel in $releases ; do |
| 6 | if [ ! -e local/cache/${rel}.tar.gz ] ; then |
| 7 | echo Fetching $rel |
| 8 | curl -q http://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-${rel}.tar.gz \ |
| 9 | > local/cache/${rel}.tar.gz |
| 10 | fi |
| 11 | done |
| 12 | |
| 13 | for rel in $releases ; do |
| 14 | echo |
| 15 | echo |
| 16 | echo Testing $rel |
| 17 | cpanm -l local -n local/cache/${rel}.tar.gz |
| 18 | prove -Q -lmcr -It/lib t || exit |
| 19 | done |
| 20 | |
| 21 | # reinsall the most recent version |
| 22 | cpanm -l local -n Perl::Tidy |