bootstrap-perls.sh 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. #
  3. # This file is part of GNU Stow.
  4. #
  5. # GNU Stow is free software: you can redistribute it and/or modify it
  6. # under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # GNU Stow is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see https://www.gnu.org/licenses/.
  17. # Load perlbrew environment
  18. . /usr/local/perlbrew/etc/bashrc
  19. # For each perl version installed.
  20. for p_version in $(perlbrew list | sed 's/ //g'); do
  21. # Switch to it.
  22. perlbrew use $p_version
  23. # and install the needed modules.
  24. /usr/local/perlbrew/bin/cpanm -n Devel::Cover::Report::Coveralls Test::More Test::Output
  25. done
  26. # Cleanup to remove any temp files.
  27. perlbrew clean