1 use ExtUtils::MakeMaker;
4 my $arch = "$Config{'archname'}-$Config{'osvers'}";
7 open my $in, "<", "arch.txt" or die "Can't read 'arch.txt': $!";
13 print "Removing old 'Errno.pm'\n";
15 or die "Failed to remove out of date 'Errno.pm': $!";
17 open my $out, ">", "arch.txt" or die "Can't write 'arch.txt': $!";
24 VERSION_FROM => 'Errno_pm.PL',
25 PL_FILES => {'Errno_pm.PL'=>'Errno.pm'},
26 PM => {'Errno.pm' => '$(INST_LIBDIR)/Errno.pm'},
27 'clean' => {FILES => 'Errno.pm arch.txt'},
29 COMPRESS => 'gzip -9f',
31 DIST_DEFAULT => 'd/Errno.pm tardist',
36 my $TARG = MM->catfile('d','Errno.pm');
38 echo '#This is a dummy file so CPAN will find a VERSION' > $TARG
39 echo 'package Errno;' >> $TARG
40 echo '\$\$VERSION = "\$(VERSION)";' >>$TARG
41 echo '#This is to make sure require will return an error' >>$TARG