added tools
Tobias Leich [Fri, 13 Nov 2009 20:43:17 +0000 (21:43 +0100)]
tools/pod2xhtml.pl [new file with mode: 0644]

diff --git a/tools/pod2xhtml.pl b/tools/pod2xhtml.pl
new file mode 100644 (file)
index 0000000..4e0edc9
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use File::Spec;
+use Pod::Xhtml;
+
+die "Usage: pod2xhtml filename\n" if $#ARGV < 0;
+
+my $parser       = Pod::Xhtml->new(FragmentOnly => 1);
+
+my $file_name    = $ARGV[0];
+$file_name       =~ s/(\.pm|\.pod)$/.html-inc/i;
+$parser->parse_from_file($ARGV[0], $file_name);