Module::Install::AutoLicense - A Module::Install extension to automagically generate LICENSE files
# In Makefile.PL use inc::Module::Install; author 'Vestan Pants'; license 'perl'; auto_license;
An appropriate LICENSE file will be generated for your distribution.
LICENSE
Module::Install::AutoLicense is a Module::Install extension that generates a LICENSE file automatically whenever the author runs Makefile.PL. On the user side it does nothing.
Makefile.PL
When make distclean is invoked by the author, the LICENSE is removed.
make distclean
The appropriate license to determined from the meta provided with the license command and the holder of the license from the author command.
license
author
Software::License is used to generate the LICENSE file.
This plugin adds the following Module::Install command:
auto_license
Does nothing on the user-side. On the author-side it will generate a LICENSE file according to the previously supplied license command. The holder of the license is determined from the author meta or may be specified using the holder parameter.
holder
auto_license( holder => 'Vestan Pants and Ivor Biggun' );
It is important to note that the auto_license must follow author and license commands in the Makefile.PL ( as demonstrated in the SYNOPSIS above ), otherwise the meta these commands provide will be unavailable to auto_license. Call it a feature.
Chris BinGOs Williams
BinGOs
Copyright © Chris Williams
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.
Module::Install
Software::License
To install Module::Install::AutoLicense, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Install::AutoLicense
CPAN shell
perl -MCPAN -e shell install Module::Install::AutoLicense
For more information on module installation, please visit the detailed CPAN module installation guide.