From 4ba155cd4cf7ea0f0392e0a0571cce2857f31746 Mon Sep 17 00:00:00 2001 From: Kevin Lewis Date: Fri, 29 Aug 2014 10:05:59 +0100 Subject: [PATCH] corrected cut+paste error in find command to search for blib/lib instead of blib/scripts comment to explain the addition of --tags to git describe --- Build.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build.PL b/Build.PL index a7a84467c..391900451 100644 --- a/Build.PL +++ b/Build.PL @@ -5,6 +5,7 @@ use Module::Build; my $class = Module::Build->subclass(code => <<'EOF'); sub git_tag { + # adding --tags to allow use of non-annotated tags (as produced by github release tagging) my $gitver = q[git describe --tags --dirty --always]; my $version = `$gitver` || 'unknown'; $version =~ s/\s$//smxg; @@ -34,7 +35,7 @@ my $class = Module::Build->subclass(code => <<'EOF'); my $gitver = $self->git_tag(); my @files = (); - if (-d 'blib/script') { + if (-d 'blib/lib') { @files = split q[\n], `find blib/lib -type f -name "*.pm"`; } if (-d 'blib/script') {