version 1.36, 2002/01/29 10:40:17
|
version 1.37, 2002/01/31 15:04:46
|
Line 281 my $link_count;
|
Line 281 my $link_count;
|
my $fileglob_count; |
my $fileglob_count; |
my $fileglobnames_count; |
my $fileglobnames_count; |
my %categorycount; |
my %categorycount; |
# START TEMP WAY |
|
#my %bytecount; # TEMP WAY TO COUNT INFORMATION |
|
#my %linecount; # TEMP WAY TO COUNT INFORMATION |
|
# END TEMP WAY |
|
|
|
my @buildall; |
my @buildall; |
my @buildinfo; |
my @buildinfo; |
Line 370 exit;
|
Line 366 exit;
|
# ------------------------ Final output at end of markup parsing and formatting |
# ------------------------ Final output at end of markup parsing and formatting |
sub end { |
sub end { |
if ($mode eq 'html') { |
if ($mode eq 'html') { |
# START TEMP WAY |
|
# my $totallinecount; |
|
# my $totalbytecount; |
|
# map {$totallinecount+=$linecount{$_}; |
|
# $totalbytecount+=$bytecount{$_}} |
|
# @categorynamelist; |
|
# END TEMP WAY |
|
return "<br /> <br />". |
return "<br /> <br />". |
"<a name='summary' /><font size='+2'>Summary of Source Repository". |
"<a name='summary' /><font size='+2'>Summary of Source Repository". |
"</font>". |
"</font>". |
Line 414 sub end {
|
Line 403 sub end {
|
"</table>". |
"</table>". |
"</body></html>\n"; |
"</body></html>\n"; |
|
|
# START TEMP WAY |
|
# join("\n",(map {"<tr><td><img src='$fab{$_}.gif' ". |
|
# "alt='$_ icon' /></td>". |
|
# "<td>$_</td><td>$categorycount{$_}</td><td>$linecount{$_}</td><td>$bytecount{$_}</td></tr>"} |
|
# @categorynamelist)). |
|
# "<br /> <br />". |
|
# "Total Lines of Code: $totallinecount". |
|
# "<br /> <br />". |
|
# "Total Bytes: $totalbytecount". |
|
# END TEMP WAY |
|
} |
} |
if ($mode eq 'install') { |
if ($mode eq 'install') { |
return ''; |
return ''; |
Line 1144 sub format_file {
|
Line 1123 sub format_file {
|
my $buildtest; |
my $buildtest; |
$file_count++; |
$file_count++; |
$categorycount{$categoryname}++; |
$categorycount{$categoryname}++; |
# START TEMP WAY |
|
# if (-T "$sourcerootarg/$source") { |
|
# $linecount{$categoryname}+=`wc -l $sourcerootarg/$source`; |
|
# } |
|
# my $bytesize=(-s "$sourcerootarg/$source"); |
|
# $bytecount{$categoryname}+=$bytesize; |
|
# END TEMP WAY |
|
if ($source) { |
if ($source) { |
$parser->get_tag('/file'); |
$parser->get_tag('/file'); |
if ($mode eq 'html') { |
if ($mode eq 'html') { |
Line 1361 sub format_fileglob {
|
Line 1333 sub format_fileglob {
|
my @semi=($filenames2=~/(\;)/g); |
my @semi=($filenames2=~/(\;)/g); |
$fileglobnames_count+=scalar(@semi)+1; |
$fileglobnames_count+=scalar(@semi)+1; |
$categorycount{$categoryname}+=scalar(@semi)+1; |
$categorycount{$categoryname}+=scalar(@semi)+1; |
# START TEMP WAY |
|
# for my $f (split(/\;/,$filenames2)) { |
|
# if (-T "$sourcerootarg/$sourcedir/$f") { |
|
# $linecount{$categoryname}+=`wc -l $sourcerootarg/$sourcedir/$f`; |
|
# open OUT,">>/tmp/junk123"; |
|
# print OUT "$linecount{$categoryname} $categoryname $sourcerootarg/$sourcedir/$f\n"; |
|
# close OUT; |
|
# } |
|
# my $bytesize=(-s "$sourcerootarg/$sourcedir/$f"); |
|
# $bytecount{$categoryname}+=$bytesize; |
|
# } |
|
# END TEMP WAY |
|
if ($sourcedir) { |
if ($sourcedir) { |
$parser->get_tag('/fileglob'); |
$parser->get_tag('/fileglob'); |
if ($mode eq 'html') { |
if ($mode eq 'html') { |