X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=tools%2FPM-Pod2html-snippet.pl;fp=tools%2FPM-Pod2html-snippet.pl;h=816558fd15dd150ae3fb5102553cce66212cdfc8;hb=4e1ad99d1b08ee2b487c3c7bbf60e0abe502c054;hp=0000000000000000000000000000000000000000;hpb=61a54f8a06cbc1066f8324b3d3de7d18253c3fd3;p=sdlgit%2FSDL-Site.git diff --git a/tools/PM-Pod2html-snippet.pl b/tools/PM-Pod2html-snippet.pl new file mode 100644 index 0000000..816558f --- /dev/null +++ b/tools/PM-Pod2html-snippet.pl @@ -0,0 +1,59 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +use File::Spec; +use Pod::Xhtml; + +#system('git pull'); + +my $input_path = 'C:/SDL_perl/lib/pods'; +my $output_path = 'F:/htdocs/SDL-Site/pages'; +my $parser = Pod::Xhtml->new(FragmentOnly => 1); +my %module_names = (); +my $fh; + +read_file($input_path); + +# creating index file +open($fh, '>', File::Spec->catfile($output_path, 'documentation.html-inc')); +binmode($fh, ":utf8"); +print($fh "