Created
April 17, 2011 05:26
-
-
Save riywo/923775 to your computer and use it in GitHub Desktop.
extlib的なところにcpanmが入ってるかチェックして入ってなければ入れるテストスクリプトライクなセットアップスクリプト
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
use strict; | |
use warnings; | |
use Test::More qw(no_plan); | |
use FindBin; | |
my $extlib = "/home/riywo/extlib"; | |
isnt(`which gcc`, '', 'check gcc') or &{ | |
diag(`sudo yum install gcc -y`); | |
}; | |
is(`perl -I$extlib/lib/perl5 -MApp::cpanminus -e 1 2>&1`, '', 'check cpanm') or &{ | |
diag(`curl -L http://cpanmin.us | perl - -v -l $extlib App::cpanminus`); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment