fix up B modules for PL_* changes
[p5sagit/p5-mst-13.2.git] / ext / Errno / Makefile.PL
CommitLineData
eab60bb1 1use ExtUtils::MakeMaker;
2
3@VMS = ($^O eq 'VMS') ? (MAN3PODS => ' ') : ();
4
5WriteMakefile(
6 NAME => 'Errno',
7 VERSION_FROM => 'Errno_pm.PL',
8 PL_FILES => {'Errno_pm.PL'=>'Errno.pm'},
9 PM => {'Errno.pm' => '$(INST_LIBDIR)/Errno.pm'},
10 'clean' => {FILES => 'Errno.pm'},
11 'dist' => {
12 COMPRESS => 'gzip -9f',
13 SUFFIX => '.gz',
14 DIST_DEFAULT => 'd/Errno.pm tardist',
15 },
16 @VMS,
17);
18
19sub MY::postamble {
20 my $TARG = MM->catfile('d','Errno.pm');
21qq!$TARG : Makefile
22 echo '#This is a dummy file so CPAN will find a VERSION' > $TARG
23 echo 'package Errno;' >> $TARG
24 echo '\$\$VERSION = "\$(VERSION)";' >>$TARG
25 echo '#This is to make sure require will return an error' >>$TARG
26 echo '0;' >>$TARG
27
28!
29}