Created
May 10, 2012 19:44
-
-
Save wki/2655390 to your computer and use it in GitHub Desktop.
install perl modules from carton.lock file
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/bash | |
# | |
# simple carton.lock based module installer script | |
# assumes that cpanm is installed natively for the perl used | |
# | |
# carton is not fully usable yet. | |
# One failing example is DBD::Pg. | |
# Reason: carton does not like "v2.19.2" version strings | |
# | |
perl -MJSON \ | |
-E 'say for' \ | |
-E 'map { $_->{pathname} }' \ | |
-E 'values %{decode_json(join("", <>))->{modules}}' \ | |
carton.lock \ | |
| cpanm --mirror http://cpan.noris.net --mirror-only \ | |
--notest --quiet \ | |
-L local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment