Skip to content

Commit

Permalink
create github/README
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Feb 17, 2024
1 parent 4f13822 commit a5e8a4e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
13 changes: 12 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![FreeBSD](https://api.cirrus-ci.com/github/pmqs/Compress-Raw-Zlib.svg?task=FreeBSD)](https://cirrus-ci.com/github/pmqs/Compress-Raw-Zlib?task=FreeBSD)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/pmqs/Compress-Raw-Zlib?svg=true)](https://ci.appveyor.com/project/pmqs/Compress-Raw-Zlib)

Upstream Testing
**Upstream Testing**

[![Linux + upstream zlib](https://github.com/pmqs/Compress-Raw-Zlib/actions/workflows/linux-upstream-zlib.yml/badge.svg)](https://github.com/pmqs/Compress-Raw-Zlib/actions/workflows/linux-upstream-zlib.yml)
[![Linux + upstream zlib-ng](https://github.com/pmqs/Compress-Raw-Zlib/actions/workflows/linux-upstream-zlib-ng.yml/badge.svg)](https://github.com/pmqs/Compress-Raw-Zlib/actions/workflows/linux-upstream-zlib-ng.yml)
Expand All @@ -22,3 +22,14 @@ For details of building and installing this module see the file [README](../READ
API Documentation is in [Zlib.pod](Zlib.pod).

This module is also available on [metacpan](https://metacpan.org/) at [Compress::Raw::Zlib](https://metacpan.org/pod/Compress::Raw::Zlib)

General feedback/questions/bug reports should be reported in the [issues](https://github.com/pmqs/Compress-Raw-Zlib/issues) page.


Copyright (c) 2009-2024 Paul Marquess. All rights reserved.

This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.


Paul Marquess <[email protected]>
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ my %WriteMakefileArgs = (
depend => { Makefile => 'config.in',
manifypods => 'READMEmd'
},
postamble => { name => 'Zlib' },
clean => { FILES => '*.c constants.h constants.xs' },
dist => { COMPRESS => 'gzip',
TARFLAGS => '-chvf',
Expand Down
35 changes: 18 additions & 17 deletions private/MakeUtil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ sub MY::libscan

sub MY::postamble
{
my %params = %{ $_[0] };
my $self = shift ;
my %params = @_ ;

return ''
if $ENV{PERL_CORE} ;
if ($ENV{PERL_CORE} )
{
return <<EOM;
READMEmd:
EOM

}

my @files = getPerlFiles('MANIFEST');

Expand All @@ -68,23 +76,16 @@ MyTrebleCheck:
';

if (-e '.github')
if (-e '.github' && exists $params{name})
{
$postamble .= <<EOM;
my $name = $params{name};
$postamble .= <<"EOM";
READMEmd: .github/Zlib.pod
READMEmd: .github/$name.pod
.github/Zlib.pod: lib/Compress/Raw/Zlib.pm
\@echo Creating .github/Zlib.pod from Zlib.pm
\$(NOECHO) perl -ne 'print unless 1 .. /^__END__/' lib/Compress/Raw/Zlib.pm >.github/Zlib.pod
EOM
}
else
{
$postamble .= <<EOM;
READMEmd:
.github/$name.pod: lib/Compress/Raw/$name.pm
\@echo Creating .github/$name.pod from $name.pm
\$(NOECHO) perl -ne 'print unless 1 .. /^__END__/' lib/Compress/Raw/$name.pm >.github/$name.pod
EOM
}
Expand Down

0 comments on commit a5e8a4e

Please sign in to comment.