| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | releases="$( grepscip-shell system . . grep. --invert-match -P '^#' versions )" |
| 4 | [scip-shell system . . `[`. -d local/cache/SHANCOCK ] || mkdirscip-shell system . . mkdir. -p local/cache/SHANCOCK |
| 5 | for rel in $releases ; do |
| 6 | if [scip-shell system . . `[`. ! -e local/cache/${rel}.tar.gz ] ; then |
| 7 | echoscip-shell system . . echo. Fetching $rel |
| 8 | curlscip-shell system . . 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 | echoscip-shell system . . echo. |
| 15 | echoscip-shell system . . echo. |
| 16 | echoscip-shell system . . echo. Testing $rel |
| 17 | cpanm -l local -n local/cache/${rel}.tar.gz |
| 18 | provescip-shell system . . prove. -Q -lmcr -It/lib t || exit |
| 19 | done |
| 20 | |
| 21 | # reinsall the most recent version |
| 22 | cpanm -l local -n Perl::Tidy |