Skip to content

Commit

Permalink
corrected cut+paste error in find command to search for blib/lib inst…
Browse files Browse the repository at this point in the history
…ead of blib/scripts

comment to explain the addition of --tags to git describe
  • Loading branch information
dozy committed Aug 29, 2014
1 parent de78e70 commit 4ba155c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit 4ba155c

Please sign in to comment.