| 1 | # | ||
| 2 | # This file is part of ASPEER::MakeMaker::Markdown::Publish. | ||
| 3 | # | ||
| 4 | # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>. | ||
| 5 | # | ||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||
| 8 | # | ||
| 9 | # Full license text is available at: | ||
| 10 | # | ||
| 11 | # <http://dev.perl.org/licenses/> | ||
| 12 | # | ||
| 13 | package ASPEER::MakeMaker::Markdown::Publish; | ||
| 14 | |||
| 15 | |||
| 16 | # Compiler pragma and package variables | ||
| 17 | # | ||
| 18 | use strict qw(vars); | ||
| 19 | use vars qw($VERSION $VERSION_GIT_SHA $AUTHORITY @ISA); | ||
| 20 | use warnings; | ||
| 21 | |||
| 22 | |||
| 23 | # Inherit the shared MakeMaker hook implementation. Actual site assembly and | ||
| 24 | # publication remains in the backend-neutral publishing module. | ||
| 25 | # | ||
| 26 | use ASPEER::MakeMaker (); | ||
| 27 | use ASPEER::MakeMaker::Markdown::Pod (); | ||
| 28 | use ASPEER::MakeMaker::Markdown::Publish::MM (); | ||
| 29 | @ISA=qw(ASPEER::MakeMaker); | ||
| 30 | |||
| 31 | |||
| 32 | # Version information | ||
| 33 | # | ||
| 34 | $AUTHORITY='cpan:ASPEER'; | ||
| 35 | $VERSION='1.004'; | ||
| 36 | $VERSION_GIT_SHA=do {local(@ARGV, $/, $_); @ARGV=($_=__FILE__.'.sha'); <> if -f $_}; | ||
| 37 | chomp($VERSION_GIT_SHA) if defined($VERSION_GIT_SHA); | ||
| 38 | |||
| 39 | |||
| 40 | # Done | ||
| 41 | # | ||
| 42 | 1; | ||
| 43 | |||
| 44 | |||
| 45 | #====================================================================================================================== | ||
| 46 | |||
| 47 | sub import { | ||
| 48 | |||
| 49 | |||
| 50 | # Install documentation maintenance before wrapping the same MakeMaker | ||
| 51 | # sections with publication targets. | ||
| 52 | # | ||
| 53 | 1 | ▶ | my ($class, @section)=@_; |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 54 | 1 | ASPEER::MakeMaker::Markdown::Pod->import(@section); | |
| 55 | 1 | return ASPEER::MakeMaker::import($class, @section); | |
| 56 | |||
| 57 | } | ||
| 58 | |||
| 59 | __END__ | ||