http://www.perlmonks.org?node_id=224901


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.

Replies are listed 'Best First'.
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.