SYNOPSIS

  # In Makefile.PL

  use inc::Module::Install;
  author 'Vestan Pants';
  license 'perl';
  auto_license;

An appropriate \*(C`LICENSE\*(C' file will be generated for your distribution.

DESCRIPTION

Module::Install::AutoLicense is a Module::Install extension that generates a \*(C`LICENSE\*(C' file automatically whenever the author runs \*(C`Makefile.PL\*(C'. On the user side it does nothing.

When \*(C`make distclean\*(C' is invoked by the author, the \*(C`LICENSE\*(C' is removed.

The appropriate license to determined from the meta provided with the \*(C`license\*(C' command and the holder of the license from the \*(C`author\*(C' command.

Software::License is used to generate the \*(C`LICENSE\*(C' file.

COMMANDS

This plugin adds the following Module::Install command: Does nothing on the user-side. On the author-side it will generate a \*(C`LICENSE\*(C' file according to the previously supplied \*(C`license\*(C' command. The \*(C`holder\*(C' of the license is determined from the \*(C`author\*(C' meta or may be specified using the \*(C`holder\*(C' parameter. auto_license( holder => 'Vestan Pants and Ivor Biggun' ); It is important to note that the \*(C`auto_license\*(C' must follow \*(C`author\*(C' and \*(C`license\*(C' commands in the \*(C`Makefile.PL\*(C' ( as demonstrated in the \s-1SYNOPSIS\s0 above ), otherwise the meta these commands provide will be unavailable to \*(C`auto_license\*(C'. Call it a feature.

AUTHOR

Chris \*(C`BinGOs\*(C' Williams

LICENSE

Copyright X 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.

RELATED TO Module::Install::AutoLicense…

Module::Install

Software::License