Commit | Line | Data |
bb4e9162 |
1 | package Module::Build::Platform::cygwin; |
2 | |
3 | use strict; |
7a827510 |
4 | use vars qw($VERSION); |
613f422f |
5 | $VERSION = '0.35_08'; |
7a827510 |
6 | $VERSION = eval $VERSION; |
bb4e9162 |
7 | use Module::Build::Platform::Unix; |
8 | |
9 | use vars qw(@ISA); |
10 | @ISA = qw(Module::Build::Platform::Unix); |
11 | |
12 | sub manpage_separator { |
13 | '.' |
14 | } |
15 | |
613f422f |
16 | # Copied from ExtUtils::MM_Cygwin::maybe_command() |
17 | # If our path begins with F</cygdrive/> then we use C<ExtUtils::MM_Win32> |
18 | # to determine if it may be a command. Otherwise we use the tests |
19 | # from C<ExtUtils::MM_Unix>. |
20 | |
21 | sub _maybe_command { |
22 | my ($self, $file) = @_; |
23 | |
24 | if ($file =~ m{^/cygdrive/}i) { |
25 | require Module::Build::Platform::Win32; |
26 | return Module::Build::Platform::Win32->_maybe_command($file); |
27 | } |
28 | |
29 | return $self->SUPER::_maybe_command($file); |
30 | } |
31 | |
bb4e9162 |
32 | 1; |
33 | __END__ |
34 | |
35 | |
36 | =head1 NAME |
37 | |
38 | Module::Build::Platform::cygwin - Builder class for Cygwin platform |
39 | |
40 | =head1 DESCRIPTION |
41 | |
42 | This module provides some routines very specific to the cygwin |
43 | platform. |
44 | |
45 | Please see the L<Module::Build> for the general docs. |
46 | |
47 | =head1 AUTHOR |
48 | |
49 | Initial stub by Yitzchak Scott-Thoennes <sthoenna@efn.org> |
50 | |
51 | =head1 SEE ALSO |
52 | |
53 | perl(1), Module::Build(3), ExtUtils::MakeMaker(3) |
54 | |
55 | =cut |