File tree 2 files changed +810
-4
lines changed
2 files changed +810
-4
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,24 @@ use warnings;
3
3
4
4
use inc::Module::Install 1.10;
5
5
6
- # only needed by author to run 'perl Makefile.PL'
7
- # use Module::Install::ReadmeFromPod 0.22;
8
-
9
6
all_from ' lib/PPI.pm' ;
10
- readme_from ' lib/PPI.pm' ; # Module::Install::ReadmeFromPod
7
+
8
+ # This code is only needed by author to generate README and README.md
9
+ eval {
10
+ eval " use Module::Install::ReadmeFromPod 0.22" ;
11
+ eval " use Pod::Markdown 2.002" ;
12
+
13
+ my $pod = ' lib/PPI.pm' ;
14
+ readme_from $pod ; # Module::Install::ReadmeFromPod
15
+
16
+ my $parser = Pod::Markdown-> new;
17
+ open my $in , " <" , $pod ;
18
+ open my $out , " >" , " README.md" ;
19
+ if ($parser and $in and $out ) {
20
+ $parser -> parse_from_filehandle($in );
21
+ print $out $parser -> as_markdown;
22
+ }
23
+ };
11
24
12
25
requires ' Clone' => ' 0.30' ;
13
26
requires ' File::Spec' => win32() ? ' 3.2701' : ' 0.84' ;
You can’t perform that action at this time.
0 commit comments