On Thu, Jun 05, 2003 at 01:47:31PM +0100, Steve Purkis wrote:
> I prefer (2) because I can use the CVS revision number in each file:
>       our $VERSION = (split(/ /, '$Revision: 1.6 $'))[1];

I think both 1 and 2 cause more pain than it's worth when you're
releasing one distribution with many files, so I go with 3)

3) Only put a version number in the file/package which you intend to
be the handle for your distribution.

 package WWW::CIA;
 our $VERSION = 0.03;
 package WWW::CIA::Parser;

Put the rcs header in the others if you must, but I'd
advocate not using it to derive a version number, since that tesnd you
bit your ass in many ways.

    * You may want to move across VCS systems.
    * You have a disaster which results in your number reverting to
      1.1 when you check in the CPAN release it being the only known copy.
    
If you really want to make it programatically available I'd suggest
you take a page from Andy Wardleys book and put that in a variable
called $REVISION


> Other things you should do:
>   *   set VERSION_FROM and ABSTRACT_FROM => 'lib/WWW/CIA.pm' in 
> Makefile.PL
>   *   create a MANIFEST with 'make manifest'
>   *   read http://www.cpan.org/misc/cpan-faq.html#How_contribute_modules

    * Throw ExtUtils::MakeMaker away, and rejoice in the cleanliness
      of Module::Build (create_makefile_pl if you must, just to keep the
      CPAN.pm users from lynching you.)

-- 
Richard Clamp <[EMAIL PROTECTED]>

Reply via email to