Skip to content

Commit

Permalink
satisfy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun committed Aug 7, 2018
1 parent 001d1a7 commit 031a78d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/build/gen-version.pl
Expand Up @@ -6,12 +6,16 @@ =head1 TITLE
=cut

use 5.008;
use strict;
use warnings;

use Digest::SHA;
use File::Find;
use POSIX 'strftime';

my $prefix = shift;
my $libdir = shift;
my $prefix = shift // '';
my $libdir = shift // '';

open(my $fh, '<', 'VERSION') or die $!;
my $VERSION = <$fh>;
Expand All @@ -28,7 +32,7 @@ =head1 TITLE
my $builddate = strftime('%Y-%m-%dT%H:%M:%SZ', gmtime);

my $sha = Digest::SHA->new;
find(sub { next unless /\.nqp\z/; $sha->addfile($_) }, "src");
find(sub { return unless /\.nqp\z/; $sha->addfile($_) }, "src");
my $source_digest = $sha->hexdigest;

print <<"END_VERSION";
Expand Down

0 comments on commit 031a78d

Please sign in to comment.