Module...icense(3pm)
π Module::Install::AutoLicense β the manual, but make it cute π
okay bestie, so this is the page for Module::Install::AutoLicense, living in section 3pm of the User Contributed Perl Documentation. it's a Module::Install extension, it writes your LICENSE file for you, and honestly? iconic behaviour. no cap. π
β¨ NAME β¨
Module::Install::AutoLicense β a Module::Install extension that automagically generates LICENSE files. yes, automagically. that's the actual word and it's giving main character energy. π
π¦ SYNOPSIS π¦
lowkey the whole vibe is right here:
# In Makefile.PL
use inc::Module::Install;
author 'Vestan Pants';
license 'perl';
auto_license;
and boom β an appropriate LICENSE file gets generated for your distribution. that's it. that's the flex. β¨
πΈ DESCRIPTION πΈ
so 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 literally does nothing. not a thing. it's just there, chilling. π
when the author invokes make distclean, the LICENSE gets removed. bye bestie, we hardly knew ye. π«Ά
the appropriate license is determined from the meta provided with the license command, and the holder of the license comes from the author command. teamwork, fr fr.
and the actual LICENSE file generation? that's handled by Software::License. we stan a delegation moment. π
π COMMANDS π
this plugin adds the following Module::Install command, and there's exactly one, so let's give it the attention it deserves:
auto_licenseβ does nothing on the user-side. on the author-side it will generate aLICENSEfile according to the previously suppliedlicensecommand. theholderof the license is determined from theauthormeta, or you can specify it yourself using theholderparameter, like so:
auto_license( holder => 'Vestan Pants and Ivor Biggun' );
important note, bestie, do NOT skip this: theauto_licensecommand must follow theauthorandlicensecommands in theMakefile.PL(as demonstrated in the SYNOPSIS above). if it doesn't, the meta that those commands provide will be unavailable toauto_license. and like... that's just how it is. call it a feature. π (the original says to call it a feature, and honestly? sure. call it a feature. π )
π AUTHOR π
Chris "BinGOs" Williams π«Ά
π LICENSE π
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 the details. go read it, it's good for you. πβ¨
π SEE ALSO π
Module::InstallSoftware::License
and that's the whole page, bestie!! this was perl v5.36.0, dated 2022-11-30, and the page itself is Module...icense(3pm) from the User Contributed Perl Documentation. mwah. ππ
β¨
π¦ where this page comes from
- debian bookworm: libmodule-install-autolicense-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmodule-install-autolicense-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmodule-install-autolicense-perl 0.10-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libmodule-install-autolicense-perl 0.10-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms