use 5.6.0; use strict; use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. use File::Find; find( \&filecheck, "." ); sub filecheck { unlink if /~$/; # Remove any emacs backup files die "Aborting: Swapfile $_ found" if /\.swp$/; } &WriteMakefile( 'NAME' => 'Tk::MARC', 'DISTNAME' => 'Tk-MARC', 'VERSION_FROM' => 'lib/Tk/MARC.pm', # finds $VERSION 'PMLIBDIRS' => [ qw( lib/ ) ], 'AUTHOR' => 'David Christensen ', 'PREREQ_PM' => { 'Test::More' => 0, 'MARC::Record' => 1.34, 'Tk' => 0, 'MARC::Descriptions' => 0, }, 'ABSTRACT_FROM' => 'lib/Tk/MARC.pm', 'EXE_FILES' => [ qw( ) ], 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 'depend' => { Makefile => '$(VERSION_FROM)' }, );