防止Dist :: Zilla插入版权年



默认情况下,如果dist :: zilla发现没有版权年,它将使用本年度,因为它似乎不支持多年或年范围合适的。但是,每当我运行dzil new Module时,它会自动将版权年插入我的dist.ini。有没有办法防止Dist :: Zilla这样做?

从铸造配置文件中删除 [DistINI],然后使用gatherdir ::模板使用模板dist.ini文件。这更灵活。

举例来说,这是我的skel/dist.ini

;                                                       -*-conf-windows-*-{{
    $license = ref $dist->license;
    if ( $license =~ /^Software::License::(.+)$/ ) {
        $license = $1;
    } else {
        $license = "=$license";
    }
    $authors = join( "n", map { "author  = $_" } @{$dist->authors} );
    '';
}}
name    = {{$dist->name}}
{{$authors}}
license = {{$license}}
copyright_holder = {{$dist->copyright_holder}}
[@Author::CJM / CJM]
[AutoPrereqs]
skip = ^(?:lib|strict|utf8|warnings)$

然后我的profile.ini包括:

[GatherDir::Template]
root = skel
include_dotfiles = 1 ; want .gitignore

最新更新