| 1 | package Module::Build::Platform::cygwin; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | our $VERSION = '0.4234'; | ||
| 6 | $VERSION = eval $VERSION; | ||
| 7 | use Module::Build::Platform::Unix; | ||
| 8 | |||
| 9 | our @ISA = qw(Module::Build::Platform::Unix); | ||
| 10 | |||
| 11 | sub manpage_separator { | ||
| 12 | '.' | ||
| 13 | } | ||
| 14 | |||
| 15 | # Copied from ExtUtils::MM_Cygwin::maybe_command() | ||
| 16 | # If our path begins with F</cygdrive/> then we use the Windows version | ||
| 17 | # to determine if it may be a command. Otherwise we use the tests | ||
| 18 | # from C<ExtUtils::MM_Unix>. | ||
| 19 | |||
| 20 | sub _maybe_command { | ||
| 21 | my ($self, $file) = @_; | ||
| 22 | |||
| 23 | if ($file =~ m{^/cygdrive/}i) { | ||
| 24 | require Module::Build::Platform::Windows; | ||
| 25 | return Module::Build::Platform::Windows->_maybe_command($file); | ||
| 26 | } | ||
| 27 | |||
| 28 | return $self->SUPER::_maybe_command($file); | ||
| 29 | } | ||
| 30 | |||
| 31 | 1; | ||
| 32 | __END__ |