Created
December 22, 2011 22:44
-
-
Save chetan/1512185 to your computer and use it in GitHub Desktop.
a simple way to install perl library dependencies from CPAN
This file contains 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 | |
# a simple dependency installer using cpanm and the DEPS file | |
if [ ! -f `which cpanm` ]; then | |
echo "need to install cpanm!" | |
cd /usr/local/bin | |
sudo curl -fsSLO http://xrl.us/cpanm | |
sudo chmod 755 cpanm | |
cd - | |
fi | |
echo -n "installing: " | |
cat DEPS | xargs echo | |
cat DEPS | sudo xargs cpanm -nq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment