This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add MidnightBSD to the list of Unix-like OSes
[perl5.git] / lib / Module / Build.pm
index aa9db8a..5ae8d80 100644 (file)
@@ -15,7 +15,7 @@ use Module::Build::Base;
 
 use vars qw($VERSION @ISA);
 @ISA = qw(Module::Build::Base);
-$VERSION = '0.2807';
+$VERSION = '0.2808';
 $VERSION = eval $VERSION;
 
 # Okay, this is the brute-force method of finding out what kind of
@@ -34,6 +34,7 @@ my %OSTYPES = qw(
                 irix      Unix
                 darwin    Unix
                 machten   Unix
+                midnightbsd Unix
                 next      Unix
                 openbsd   Unix
                 netbsd    Unix
@@ -95,6 +96,10 @@ if (grep {-e File::Spec->catfile($_, qw(Module Build Platform), $^O) . '.pm'} @I
 
 sub os_type { $OSTYPES{$^O} }
 
+sub is_vmsish { return ((os_type() || '') eq 'VMS') }
+sub is_windowsish { return ((os_type() || '') eq 'Windows') }
+sub is_unixish { return ((os_type() || '') eq 'Unix') }
+
 1;
 
 __END__