Skip to content

Commit

Permalink
switch to dzil Git::GatherDir
Browse files Browse the repository at this point in the history
This puts any file in the git repo into the resulting dist, which makes
it easier to add the right things
  • Loading branch information
preaction committed Jan 11, 2015
1 parent 036e8ce commit e48d1e1
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,34 @@ bugtracker.web = https://github.com/preaction/Term-FormatColumns/issues
repository.type = git

; --- Module management
[@Basic]
[ManifestSkip]
[@Filter]
-bundle = @Basic
; GatherDir must be configured separately
-remove = GatherDir

[ReadmeFromPod]
[ReadmeMarkdownFromPod]
[PodWeaver]
[PkgVersion]
[ModuleBuild]
[CPANFile]
[Git::Contributors]
; authordep Pod::Weaver::Section::Contributors = 0.009
; authordep Pod::Weaver::Section::Contributors

; --- Repository management
[PruneFiles]
; Remove unnecessary root content from the generated dist package
; hidden files
match = ^\..+
; .ini files in the root dir
match = ^[^/]+\.ini$
; the eg/ directory
match = ^eg/.*

[Run::BeforeBuild]
; Remove generated root content so it can be regenerated
run = rm -f cpanfile
run = rm -f INSTALL
run = rm -f LICENSE
run = rm -f CHANGES
run = rm -f README
run = rm -f README.mkdn
run = rm -f Build.PL
run = rm -f Makefile.PL
[Git::GatherDir]
include_dotfiles = 1
prune_directory = ^eg
; Exclude generated root content, which is included by the various plugins
; Without this, we get an error about duplicate content
exclude_filename = cpanfile
exclude_filename = INSTALL
exclude_filename = LICENSE
exclude_filename = CHANGES
exclude_filename = README
exclude_filename = README.mkdn
exclude_filename = Build.PL
exclude_filename = Makefile.PL

[ChangelogFromGit::CPAN::Changes]
; Create a changelog from the git repository commits
Expand Down

0 comments on commit e48d1e1

Please sign in to comment.