Created
October 7, 2014 22:29
-
-
Save jmmills/39b5d17b458e431f27aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| _THREADS=$1 | |
| shift | |
| _CPANM_OPTS="--notest --mirror http://ftp.cpan.org/pub/CPAN/ --mirror ${CPAN_MIRROR}" | |
| cpanm --quiet --showdeps $* \ | |
| | xargs -n 1 -P $_THREADS cpanm ${_CPANM_OPTS} \ | |
| && cpanm ${_CPANM_OPTS} $* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice! Any recommendations using this with 1) cpanfile and 2) local::lib?
Normally, I run builds as
cpanm -l env --no-man-pages --notest --self-contained --installdeps .however that has become too slow and was hoping I could do something like you have above. It appears cpanfiles are only used with --installdeps.