Commit | Line | Data |
cfaf3de0 |
1 | package SQL::Translator; |
2 | |
3 | use strict; |
4 | use ExtUtils::MakeMaker; |
5 | |
0ff797ba |
6 | my @SIGN; |
7 | if ($ExtUtils::MakeMaker::VERSION >= 6.18) { |
8 | @SIGN = (SIGN => 1); |
9 | } |
10 | |
cfaf3de0 |
11 | WriteMakefile( |
12 | 'NAME' => __PACKAGE__, |
0ff797ba |
13 | @SIGN, |
d5a20e63 |
14 | 'VERSION_FROM' => 'lib/SQL/Translator.pm', |
cfaf3de0 |
15 | 'EXE_FILES' => [ |
9e09fe5a |
16 | 'bin/sqlt-diagram', |
f5d6ae2f |
17 | 'bin/sqlt-diff', |
9e09fe5a |
18 | 'bin/sqlt-dumper', |
19 | 'bin/sqlt-graph', |
20 | 'bin/sqlt', |
cfaf3de0 |
21 | ], |
a212a6f2 |
22 | 'PREREQ_PM' => { |
23 | 'Class::Base' => 0, |
24 | 'File::Basename' => 0, |
25 | 'File::Spec' => 0, |
26 | 'GD' => 0, |
27 | 'GraphViz' => 0, |
28 | 'IO::Dir' => 0, |
29 | 'IO::File' => 0, |
30 | 'IO::Scalar' => 0, |
31 | 'Parse::RecDescent' => 1.94, |
32 | 'Pod::Usage' => 0, |
0eb5d8f4 |
33 | 'Spreadsheet::ParseExcel' => 0.2602, |
a212a6f2 |
34 | 'Template' => 2.10, |
35 | 'Test::More' => 0, |
36 | 'Test::Exception' => 0, |
37 | 'Test::Differences' => 0, |
38 | 'Text::ParseWords' => 0, |
39 | 'Text::RecordParser' => 0.02, |
f1c3ce1e |
40 | 'XML::Writer' => 0.500, |
a212a6f2 |
41 | 'XML::XPath' => 1.13, |
42 | 'YAML' => 0, |
43 | }, |
44 | 'clean' => { |
4b6a6341 |
45 | FILES => '$(DISTVNAME).tar$(SUFFIX)', |
7a8e1f51 |
46 | }, |
cfaf3de0 |
47 | ); |
4b6a6341 |
48 | |
55879795 |
49 | package MY; |
c406ab33 |
50 | use File::Basename qw(basename); |
51 | |
52 | sub libscan { |
53 | my ($self, $file) = @_; |
54 | my $bfile = basename($file); |
55 | |
56 | return if $bfile =~ /^\.(?:cvs)?ignore$/; |
57 | return if $bfile =~ /\.swp$/; |
58 | |
59 | return $self->SUPER::libscan($file); |
60 | } |