Hey, im bored so what the hell.
I dont have a linux machine to test this on, but I think it might work.
You will need to copy all of your man pages into a single directory, cp them, not mv.
then write this script and run it.
#cut here or near
#!/usr/bin/perl
opendir(DIR,".");
@blah = readdir(DIR); closedir(DIR);
open(INDEX,">index.html");
shift @blah; shift @blah;
foreach my $bla(@blah) {
if ($bla =~ /\.bz2/) {
system("bzip2 -d $bla);
@hi = split(/\.bz2//,$bla);
system("cat $bla | man2html >> $bla.html;");
print INDEX ("
$bla\n");
}
}
print("\ndone..");
### cut here or near
I hope thats not too gay. I dont know if it work, i would reread it but im too lazy and i think if i find a mistake i might want to fix it but im to lazy to fix it because im lazy.
I realy hope that works..
dont forget that thats on the subject of reading man pages -> almost on the subject of a linux howto.
I hope this allows my newlines.
mabye I should have used
tags and stuff. But then im too lazy . I hope its not one line.
that would suck.