Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: gzipped tarballs, CPAN, winzip, and all that

by Beatnik (Parson)
on Jan 07, 2003 at 07:51 UTC ( #224901=note: print w/ replies, xml ) Need Help??


in reply to gzipped tarballs, CPAN, winzip, and all that

This may sound a bit silly but I use a make dist and one line in Makefile.PL to do that archiving for me.

use ExtUtils::MakeMaker; #yada yada WriteMakefile( 'NAME' => 'Foo::Bar', 'VERSION_FROM' => 'Bar.pm', # finds $VERSION 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'Bar.pm', # retrieve abstract from module AUTHOR => '') : ()), 'dist' => {COMPRESS=>'gzip',SUFFIX=>'gz'}, );
After a perl Makefile.PL, I just make dist and run to PAUSE to upload the tarball.

HTH

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.


Comment on Re: gzipped tarballs, CPAN, winzip, and all that
Select or Download Code
Re: Re: gzipped tarballs, CPAN, winzip, and all that
by John M. Dlugosz (Monsignor) on Jan 07, 2003 at 08:16 UTC
    I get "unknown command make" from the command prompt. The NMAKE that comes with the Microsoft C++ compiler is so unlike make (they kind of missed the point; it doesn't do forward-chaining logic if I recall) that I don't think it would work. What 'make' do you use on a Windows system?

      If you have Windows versions of tar and gzip on your path then "nmake dist" will work with the Makefile.PL file shown by Beatnik.

      --
      John.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-01 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls