Skip to content

Commit

Permalink
Update ext.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 23, 2010
1 parent b116855 commit c969b69
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ext.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@



INSTALL_CPANM_TO=~/bin/cpanm

install-cpanm-git:
git clone git://github.com/miyagawa/cpanminus.git
cd cpanminus.git
perl Makefile.PL && make && sudo make install

install-cpanm:
mkdir ~/bin/
if [[ -n `which wget` ]] ; then wget http://xrl.us/cpanm -O ~/bin/cpanm ; \
else curl http://xrl.us/cpanm -o ~/bin/cpanm ; fi
chmod +x ~/bin/cpanm
if [[ -n `which wget` ]] ; then wget http://xrl.us/cpanm -O $(INSTALL_CPANM_TO) ; \
elif [[ -n `which curl` ]] ; then curl http://xrl.us/cpanm -o $(INSTALL_CPANM_TO) ; \
fi
chmod +x ($INSTALL_CPANM_TO)

0 comments on commit c969b69

Please sign in to comment.