Porting/sync-with-cpan - Synchronize with CPAN distributions
perl Porting/sync-with-cpan <module>
where <module> is the name it appears in the
%Modules hash of Porting/Maintainers.pl
Script to help out with syncing cpan distros.
Does the following:
Fetches the package list from CPAN. Finds the current version of the given package. 
Downloads the relevant tarball; unpacks the tarball. 
Clean out the old directory (
git clean -dfx)
Moves the old directory out of the way, moves the new directory in place.
Restores any .gitignore file.
Removes files from
git addany new files.
git rmany files that are gone.
Remove the +x bit on files in t/
Remove the +x bit on files that don't have it enabled in the current dir
Restore files mentioned in
Adds new files to MANIFEST
make(assumes a configure has been run)
Runs tests for the package
Runs the porting tests
 If the
--tarball option is given, then CPAN is not consulted.
--tarball should be the path to the tarball; the version is extracted from the filename -- but can be overwritten by the
Delete files from MANIFEST
Optional, run a full test suite
This is an initial version; no attempt has been made yet to make this portable. It shells out instead of trying to find a Perl solution. In particular, it assumes wget, git, tar, chmod, perl, make, and rm to be available.