proxmox-spamassassin/upstream/build/convert_pods_to_doc
Stoiko Ivanov 37ef577538 buildsys: drop upstream tarball and add extracted sources
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-03-24 18:19:35 +01:00

18 lines
335 B
Perl
Executable File

#!/usr/bin/perl
use Pod::Html;
use Pod::Text ();
foreach (@ARGV) {
$in = $_;
s,^(lib|spamd|spamc)/|\.(pod|pm)$,,g;
tr,/,_,;
# convert to HTML: doc/foo.html
pod2html ("--infile=$in", "--outfile=doc/$_.html");
# and to text: doc/foo.txt
my $parser = Pod::Text->new ();
$parser->parse_from_file ($in, "doc/$_.txt");
}