DOKK / manpages / debian 13 / libdist-build-perl / Dist::Build::ShareDir.3pm.en
Dist::Build::ShareDir(3pm) User Contributed Perl Documentation Dist::Build::ShareDir(3pm)

Dist::Build::ShareDir - Sharedir support for Dist::Build

version 0.020

 load_extension("Dist::Build::ShareDir");
 dist_sharedir('share', 'Foo-Bar');
 module_sharedir('foo', 'Foo::Bar');

This Dist::Build extension implements sharedirs. It does not take any arguments at loading time, and exposts two functions to the planner:

This marks $dir as the source sharedir for the distribution $distribution. If $distribution isn't given, it defaults to the "distribution" of the planner.

This marks $dir as the source sharedir for the module $module_name. If $module_name isn't given, it defaults to the "main_module" of the planner.

Leon Timmermans <fawaka@gmail.com>

This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2025-05-11 perl v5.40.1