From c6f8b0d523856be8ef6795728bf138b48ab43718 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Mon, 13 May 2024 20:27:51 +0200 Subject: [PATCH] Don't include dzil's .build dir in dist Adding .build to both prune_directory and MANIFEST.SKIP is redundant, but seems safer. Most of the existing removals are already in MANIFEST.SKIP, but using prune_directory will make builds faster by avoiding collecting the files to begin with. --- MANIFEST.SKIP | 1 + dist.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 0cb6c055..5112ab0e 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -28,3 +28,4 @@ MYMETA\. tags .perl-version \.db +^\.build\b diff --git a/dist.ini b/dist.ini index 10c87ada..a8651235 100644 --- a/dist.ini +++ b/dist.ini @@ -12,6 +12,7 @@ run = perl Makefile.PL ; needed for VersionFromScript above [GatherDir] ; gather files from the dist dir include_dotfiles = 1 +prune_directory = ^\.build$ [ManifestSkip] ; remove gathered files specified by MANIFEST.SKIP [ExecDir] ; mark bin as the dir to contain scripts [OurPkgVersion] ; add versions to the packages