Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Apr 10, 2014
1 parent eacffe9 commit 974fb68
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions Makefile.PL
Expand Up @@ -3,6 +3,22 @@ use strict;
use ExtUtils::MakeMaker;
use Alien::SDL;

use File::Spec;

sub _slurp
{
my $filename = shift;

open my $in, '<', $filename
or die "Cannot open '$filename' for slurping - $!";

local $/;
my $contents = <$in>;

close($in);

return $contents;
}

my $lib = 'betweener';
my $test = 'betweener_unit_tests';
Expand Down Expand Up @@ -36,6 +52,30 @@ WriteMakefile(
? (LICENSE => 'perl',)
: ()
),
(($ExtUtils::MakeMaker::VERSION >= 6.48)
? (
META_MERGE =>
{
provides => {
'SDLx::Betweener' => {
file => "lib/SDLx/Betweener.pm",
version => sub {
my $contents = _slurp(File::Spec->catfile(File::Spec->curdir, qw( lib SDLx Betweener.pm)));
if (my ($version) = ($contents =~ /^our \$VERSION = '([^']*)'/ms))
{
return $version;
}
else
{
die "Cannot find version in file.";
}
}->(),
},
},
},
)
: ()
),
# clean => {'FILES' => ''},
);

Expand Down
2 changes: 1 addition & 1 deletion lib/SDLx/Betweener.pm
Expand Up @@ -7,7 +7,7 @@ use Scalar::Util qw(weaken);
use SDL;
use SDLx::Betweener::Timeline;

our $VERSION = '0.0102';
our $VERSION = '0.0103';

require XSLoader;
XSLoader::load('SDLx::Betweener', $VERSION);
Expand Down

0 comments on commit 974fb68

Please sign in to comment.