Skip to content

Commit

Permalink
0.15 - Improved Build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timofey Potapov committed Oct 13, 2024
1 parent fb5360a commit 96ba610
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 11 deletions.
38 changes: 32 additions & 6 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,39 @@ use warnings;
use Module::Build;
Module::Build->VERSION( '0.4004' );

sub readme {
print "Building README\n";
system "pod2markdown lib/Pod/LOL.pm > README.md";
}
readme();
my $class = Module::Build->subclass(
code => q{
use Cwd qw( cwd );
my $builder = Module::Build->new(
#---------------------------------
# Build
#---------------------------------
sub ACTION_build {
my ($s) = @_;
$s->_readme();
$s->SUPER::ACTION_build;
}
# Only for the maintainer on "Build build".
sub _readme {
my ($s) = @_;
return if cwd() !~ m{ / git / perlmy / [^/]+ $ }x;
my ($installed) =
grep { -x "$_/pod2markdown" }
split /:/, $ENV{PATH};
return if !$installed;
print "Building README\n";
my $lib = $s->{properties}{dist_version_from};
system "pod2markdown $lib > README.md";
}
},
);

my $builder = $class->new(
module_name => 'Pod::LOL',
license => 'artistic_2',
dist_author => q{Tim Potapov <tim.potapov[AT]gmail.com>},
Expand Down
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Revision history for Pod-LOL

0.15 2024-10-13 - Improved Build process.
0.14 2024-06-11 - Updated git flow for perl v5.40.
0.13
2022-10-18 - Added complex CI.
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"provides" : {
"Pod::LOL" : {
"file" : "lib/Pod/LOL.pm",
"version" : "0.14"
"version" : "0.15"
}
},
"release_status" : "stable",
Expand All @@ -48,6 +48,6 @@
"url" : "https://github.com/poti1/pod-lol"
}
},
"version" : "0.14",
"version" : "0.15",
"x_serialization_backend" : "JSON::PP version 4.16"
}
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ name: Pod-LOL
provides:
Pod::LOL:
file: lib/Pod/LOL.pm
version: '0.14'
version: '0.15'
requires:
perl: '5.012'
resources:
bugtracker: https://github.com/poti1/pod-lol/issues
license: http://www.perlfoundation.org/artistic_license_2_0
repository: https://github.com/poti1/pod-lol
version: '0.14'
version: '0.15'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
2 changes: 1 addition & 1 deletion lib/Pod/LOL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Version 0.14
=cut

our $VERSION = '0.14';
our $VERSION = '0.15';
our $DEBUG = 0;


Expand Down

0 comments on commit 96ba610

Please sign in to comment.