#!/usr/bin/perl # # Convert the Status text file to HTML # # Usage: status2html.pl < 00STATUS > 00STATUS.html # my $bgcolor = "ffffff"; print ("
"); ($dummy, $_) = ($_ =~ /^(\w+):(\S+)/) if ($_ =~ /^(\w+):(\S+)/); # Remove 1th part to ":" if ($_ eq "no") { print (""); } elsif ($_ eq "yes") { print (""); } print ("$_"); print (" | "); } if ($bgcolor eq "f0f0f0") { $bgcolor = "ffffff"; } else { $bgcolor = "f0f0f0"; } } print ("