Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 imbibing at the Monastery: (11)
As of 2014-09-19 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (144 votes), past polls