CPANPLUS-Shell-Wx
view release on metacpan or search on metacpan
misc/make_dist.pl view on Meta::CPAN
push @files, "$dir$file";
}
}
closedir DIR;
}
return \@dirs, \@files;
}
# clean windows line ending away
sub fix_line_endings {
my $file = shift;
local $/;
open my $fh, "+<$file" or die "Can't open $file for R/W $!\n";
binmode $fh;
my $data = <$fh>;
write_file( "$file.bak" , $data ) if $backup;
$data =~ s/\015\012/\012/g;
$data =~ s/ +\012/\012/g;
$data =~ s/\t/ /g;
seek $fh, 0, 0;
truncate $fh, 0;
print $fh $data;
close $fh;
$file =~ s/\Q$root\E//o;
print "Processed $file\n";
}
# make HTML from the pod
sub make_html {
my $file = shift;
(my $name) = $file =~ m/([^\/\\]+)\.pm$/;
print "Writing html/$name.html\n";
pod2html( "--infile=$file",
"--header",
"--title=$name.pm",
"--css=${htmldir}docs.css",
"--outfile=$htmldir$name.html",
"--quiet" );
return "$name.html";
}
sub write_file {
my $file = shift;
open F, ">$file" or die "Can't write $file: $!\n";
print F for @_;
close F;
}
__DATA__
BODY {
font: small verdana, arial, helvetica, sans-serif;
color: black;
background-color: white;
}
A:link {color: #0000FF}
A:visited {color: #666666}
A:active {color: #FF0000}
H1 {
font: bold large verdana, arial, helvetica, sans-serif;
color: black;
}
H2 {
font: bold large verdana, arial, helvetica, sans-serif;
color: maroon;
}
H3 {
font: bold medium verdana, arial, helvetica, sans-serif;
color: blue;
}
H4 {
font: bold small verdana, arial, helvetica, sans-serif;
color: maroon;
}
H5 {
font: bold small verdana, arial, helvetica, sans-serif;
color: blue;
}
H6 {
font: bold small verdana, arial, helvetica, sans-serif;
color: black;
}
UL {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
OL {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
LI {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
TH {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
TD {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
TD.foot {
font: medium sans-serif;
color: #eeeeee;
background-color="#cc0066"
}
DL {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
DD {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
DT {
font: small verdana, arial, helvetica, sans-serif;
color: black;
}
CODE {
font: Courier, monospace;
}
PRE {
font: Courier, monospace;
}
P.indent {
font: small verdana, arial, helvetica, sans-serif;
color: black;
background-color: white;
list-style-type : circle;
list-style-position : inside;
margin-left : 16.0pt;
}
PRE.programlisting
{
font-size : 9.0pt;
list-style-type : disc;
margin-left : 16.0pt;
margin-top : -14.0pt;
}
INPUT {
font: bold small verdana, arial, helvetica, sans-serif;
color: black;
background-color: white;
}
TEXTAREA {
font: bold small verdana, arial, helvetica, sans-serif;
color: black;
background-color: white;
}
.BANNER {
background-color: "#cccccc";
font: bold medium verdana, arial, helvetica, sans-serif;
}
( run in 2.399 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )