1 use ExtUtils::MakeMaker;
4 @VMS = ($^O eq 'VMS') ? (MAN3PODS => {}) : ();
6 my $arch = "$Config{'archname'}-$Config{'osvers'}";
9 open my $in, "<", "arch.txt" or die "Can't read 'arch.txt': $!";
15 print "Removing old 'Errno.pm'\n";
17 or die "Failed to remove out of date 'Errno.pm': $!";
19 open my $out, ">", "arch.txt" or die "Can't write 'arch.txt': $!";
26 VERSION_FROM => 'Errno_pm.PL',
27 MAN3PODS => {}, # Pods will be built by installman.
28 PL_FILES => {'Errno_pm.PL'=>'Errno.pm'},
29 PM => {'Errno.pm' => '$(INST_LIBDIR)/Errno.pm'},
30 'clean' => {FILES => 'Errno.pm'},
32 COMPRESS => 'gzip -9f',
34 DIST_DEFAULT => 'd/Errno.pm tardist',
40 my $TARG = MM->catfile('d','Errno.pm');
42 echo '#This is a dummy file so CPAN will find a VERSION' > $TARG
43 echo 'package Errno;' >> $TARG
44 echo '\$\$VERSION = "\$(VERSION)";' >>$TARG
45 echo '#This is to make sure require will return an error' >>$TARG