Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: How to make a CPAN Module Distribution

by lachoy (Parson)
on Apr 14, 2002 at 21:11 UTC ( #159008=note: print w/replies, xml ) Need Help??

in reply to How to make a CPAN Module Distribution

Packaging note: a make tardist will bundle up all the files in MANIFEST to a tarball for you. It's more useful to me than the straight tar and gzip because I tend to have extra (non-distributable) stuff in my module working directory.

Also, if you're going to use CVS tags to track VERSION numbers of all but your top-level module (recommended for sheer laziness and consistency), remember to do it in the beginning. If you decide to do it later you'll almost certainly wind up confusing CPAN because you get a sub-module with a lower VERSION than your previous distribution's version.

Update: forgot one other useful thing: You can create a MANIFEST file in the current directory by running:

$  perl -MExtUtils::Manifest -e 'ExtUtils::Manifest::mkmanifest()'

M-x auto-bs-mode

Replies are listed 'Best First'.
Re: Re: How to make a CPAN Module Distribution
by simonflk (Pilgrim) on Apr 15, 2002 at 00:30 UTC

    I also recommend reading perlnewmod. It is also worth reading perlmod and perlmodlib for general information about writing modules, versions, the CPAN, etc

    Depending on your coding style, you may find ExtUtils::ModuleMaker useful.


    -- simonflk


    update: Sorry lachoy, I meant this as a reply to root doc. God, I haven't done that in a while!

    update 2: Just posted a review of ExtUtils::ModuleMaker with sample code. BTW, if you use on Win32, it will do a make dist.

      Thanks for the link to Nice review too.




Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://159008]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2023-01-30 08:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found