Module::Install::AssertOS - A Module::Install extension to require that we are running on a particular OS
# In Makefile.PL
assertos qw(Linux FreeBSD Cygwin);
The Makefile.PL will die unless the platform the code is running on is Linux, FreeBSD or Cygwin.
Module::Install::AssertOS is a Module::Install extension that integrates Devel::AssertOS so that CPAN authors may easily stipulate which particular OS environments their distributions may be built and installed on.
The author specifies which OS or OS families are supported. The necessary Devel::AssertOS files are copied to the inc/ directory along with the Module::Install files.
On the module user side, the bundled inc/ Devel::AssertOS determines whether the current environment is supported or not and will die accordingly.
This plugin adds the following Module::Install command:
Requires a list of OS or OS families that you wish to support. Check with Devel::CheckOS and Devel::CheckOS::Families for more details of what you may specify.
Chris BinGOs Williams
Based on use-devel-assertos by David Cantrell
Copyright © Chris Williams and David Cantrell
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.
To install Module::Install::AssertOS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.