use ExtUtils::MakeMaker; # The purpose of this section is to add "use utf8;" before the BEGIN # statement of modules in Date-Ethiopic so that the package is forward # and backward compatibily with Perl versions. if ( $] >= 5.006 ) { my $fh; open ( $fh, "MANIFEST" ); while ( <$fh> ) { if ( /lib/ ) { chomp; my $oldpm = $_; my $newpm = "$oldpm.utf8"; my ($oldh, $newh); open ( $oldh, $oldpm ); open ( $newh, ">$newpm" ); while ( <$oldh> ) { print $newh "use utf8;\n" if ( /^BEGIN/ ); print $newh $_; } close ($newh); close ($oldh); rename ($newpm, $oldpm); } } } # end if ( $] >= 5.006 ) # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( NAME => 'Date::Ethiopic', DISTNAME => 'Date-Ethiopic', VERSION_FROM => 'lib/Date/Ethiopic.pm', # finds $VERSION AUTHOR => "Daniel Yacob ", ABSTRACT => "ICalendar for the Ethiopic Calendar System.", PREREQ_PM => { 'Date::ICal' => 0, 'Convert::Number::Ethiopic' => '0.15' }, dist => { COMPRESS => "gzip -9f", SUFFIX => "gz", POSTOP => 'mv $(DISTNAME)-$(VERSION).tar.gz ../' } );