App::Git::SitePerl - Versioned site installs using Git and CPAN
Installation:
# create a .git and configure CPAN.pm: % git site-perl-init
Usage:
# use CPAN.pm normally: % cpan Module::Foo
These two scripts provide hooks to have a versioned sitelib directory, by configuring CPAN to use a wrapper that invokes make install or ./Build install normally, and then calls git add and git commit.
make install
./Build install
git add
git commit
$Config{installsitelib}
If your perl is completely isolated from the rest of the system (e.g. installed with the prefix /usr/local/perl-5.xx.x instead of /usr/local) then it's better to git init at the top level of that prefix.
/usr/local/perl-5.xx.x
/usr/local
git init
Unfortunately in a shared prefix there is too much potential for confusion by accidentally committing non Perl things.
CPANPLUS integration
local::lib support
CPAN, local::lib
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install App::Git::SitePerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Git::SitePerl
CPAN shell
perl -MCPAN -e shell install App::Git::SitePerl
For more information on module installation, please visit the detailed CPAN module installation guide.