X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Flocal%2Flib.pm;h=6b1f5f9c00080343fbd9f1e7877c98ecb489b021;hb=fe03358f442f762eb8872cbb9ede5b4380493c72;hp=cd243b921b9b0bda61ce856e036bdabb2d77ebea;hpb=322b0a0d666bdc535683d60f48de723124437950;p=p5sagit%2Flocal-lib.git diff --git a/lib/local/lib.pm b/lib/local/lib.pm index cd243b9..6b1f5f9 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -11,7 +11,7 @@ use File::Path (); use Carp (); use Config; -our $VERSION = '1.004007'; # 1.4.7 +our $VERSION = '1.004008'; # 1.4.7 my @KNOWN_FLAGS = (qw/--self-contained/); sub import { @@ -157,7 +157,11 @@ sub resolve_home_path { my ($user) = ($path =~ /^~([^\/]+)/); # can assume ^~ so undef for 'us' my $tried_file_homedir; my $homedir = do { - if (eval { require File::HomeDir } && $File::HomeDir::VERSION >= 0.65) { + if ( + eval { require File::HomeDir } + # Use CPAN::Version if available as it deals correctly with dev releases + && (eval { require CPAN::Version; } ? CPAN::Version->vgt($File::HomeDir::VERSION, 0.65) : $File::HomeDir::VERSION >= 0.65 + )) { $tried_file_homedir = 1; if (defined $user) { File::HomeDir->users_home($user); @@ -452,6 +456,11 @@ You can also pass --bootstrap=~/foo to get a different location - echo 'eval $(perl -I$HOME/foo/lib/perl5 -Mlocal::lib=$HOME/foo)' >>~/.bashrc +After writing your shell configuration file, be sure to re-read it to get the +changed settings into your current shell's environment. Bourne shells use C<. +~/.bashrc> for this, whereas C shells use C. Replace .bashrc or +.cshrc with the name of the file you wrote above with the echo command. + If you're on a slower machine, or are operating under draconian disk space limitations, you can disable the automatic generation of manpages from POD when installing modules by using the C<--no-manpages> argument when bootstrapping: @@ -784,9 +793,15 @@ section. Many thanks! Patch to add Win32 support contributed by Curtis Jewell . +=head1 COPYRIGHT + +Copyright (c) 2007 - 2009 the local::lib L and L as +listed above. + =head1 LICENSE -This library is free software under the same license as perl itself. +This library is free software and may be distributed under the same terms +as perl itself. =cut