ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-AIO/Makefile.PL
(Generate patch)

Comparing Linux-AIO/Makefile.PL (file contents):
Revision 1.1 by root, Tue Aug 14 03:18:53 2001 UTC vs.
Revision 1.2 by root, Tue Aug 14 04:32:19 2001 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3WriteMakefile( 3my $mm = MM->new({
4 dist => { 4 dist => {
5 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 5 PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
6 COMPRESS => 'gzip -9v', 6 COMPRESS => 'gzip -9v',
7 SUFFIX => '.gz', 7 SUFFIX => '.gz',
8 }, 8 },
9 NAME => "Linux::AIO", 9 NAME => "Linux::AIO",
10 VERSION_FROM => "AIO.pm", 10 VERSION_FROM => "AIO.pm",
11); 11});
12 12
13sub MY::postamble { 13sub MY::postamble {
14 <<EOF; 14 <<EOF;
15 15
16# set \$VERSION in all modules 16# set \$VERSION in all modules
18 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm 18 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm
19 19
20EOF 20EOF
21} 21}
22 22
23# now get rid of -fpic, because gcc can't use syscall'ed closures
24# from within pic code.
25for ($mm->{CCDLFLAGS}, $mm->{CCCDLFLAGS}, @{$mm->{RESULT}}) {
26 s/\B-f(pic|PIC)\b//g
27}
23 28
29$mm->flush;
30

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines