From: matthewt Date: Thu, 13 Sep 2007 22:15:59 +0000 (+0000) Subject: fix File::HomeDir invocation, document limitations X-Git-Tag: 1.006009~106 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc8ddd0671cf63408eb7f2820d349dad768fa4c2;p=p5sagit%2Flocal-lib.git fix File::HomeDir invocation, document limitations git-svn-id: http://dev.catalyst.perl.org/repos/bast/local-lib/1.000/trunk@3735 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 1b6452f..1c4cc47 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -90,7 +90,7 @@ sub resolve_home_path { if (defined $user) { File::HomeDir->users_home($user); } else { - File::HomeDir->my_homedir; + File::HomeDir->my_home; } } else { if (defined $user) { @@ -252,10 +252,26 @@ From the shell - To bootstrap if you don't have local::lib itself installed - - perl -MCPAN -eshell + $ perl -MCPAN -eshell cpan> look local::lib $ perl Makefile.PL --bootstrap $ make test && make install + cpan> exit + $ echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc + +You can also pass --boostrap=~/foo to get a different location (adjust the +bashrc line appropriately) + +=head1 LIMITATIONS + +No support for non-bourne shells. + +Bootstrap is a hack and will use CPAN.pm for ExtUtils::MakeMaker even if you +have CPANPLUS installed. + +Kills any existing PERL5LIB, PERL_MM_OPT or MODULEBUILDRC. + +Patches very much welcome for any of the above. =head1 AUTHOR