On Wed, Jan 16, 2002 at 11:10:31PM +0000, John McNamara wrote:
> At 14:10 16/01/02 -0800, Curtis "Ovid" Poe wrote:
> 
>  >>"Daniel E. Lautenschleger" <[EMAIL PROTECTED]> wrote:
>  >>
>  >> Then how does one install up-to-date modules into
>  >> ActiveState'sPerl?
> 
>  > I really think it would be nice if someone worked on some code to
>  > make PPM archives automatically (though I think it might be
>  > problematic for non perl-only modules)
> 
> 
> Jan (Jenda) Krynicky wrote such a program. See his PPM How-to:
> http://Jenda.Krynicky.cz/perl/PPM.html

I just add this to the bottom of my Makefile.PL.

sub MY::postamble
{
  qq[
ppm : ppd pure_all
\t tar cf Gedcom.tar blib
\t gzip --best --force Gedcom.tar
\t \$(PERL) -pi.bak \\
  -e 's/(OS NAME=")[^"]*/\$\$1MSWin32/;' \\
  -e 's/(ARCHITECTURE NAME=")[^"]*/\$\$1MSWin32-x86-multi-thread/;' \\
  -e 's/(CODEBASE HREF=")[^"]*/\$\$1Gedcom.tar.gz/;' \\
  Gedcom.ppd
  ]
}

Yes, this is a Perl only module, which means I can create the ppm on any
platform, but I think the method is also fine for XS modules, provided
of course that blib is populated correctly.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to