perl.sh 600 B

1234567891011121314
  1. #!/bin/bash
  2. RETCODE=$(fw_exists perl-5.18)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_get https://raw.github.com/tokuhirom/Perl-Build/master/perl-build -O perl-build.pl
  5. # compile with optimizations, n.b. this does not turn on debugging
  6. perl perl-build.pl -DDEBUGGING=-g 5.18.2 perl-5.18
  7. fw_get http://cpanmin.us -O cpanminus.pl
  8. perl-5.18/bin/perl cpanminus.pl --notest --no-man-page App::cpanminus
  9. # Install only a bare-bones of Perl modules
  10. # Install others in the per-framework install script or cpanfile
  11. perl-5.18/bin/cpanm -f --notest --no-man-page JSON JSON::XS IO::Socket::IP IO::Socket::SSL