--- loncom/build/lpml_parse.pl 2002/01/09 22:18:16 1.35
+++ loncom/build/lpml_parse.pl 2002/02/05 01:28:16 1.39
@@ -3,7 +3,7 @@
# The LearningOnline Network with CAPA
# lpml_parse.pl - Linux Packaging Markup Language parser
#
-# $Id: lpml_parse.pl,v 1.35 2002/01/09 22:18:16 harris41 Exp $
+# $Id: lpml_parse.pl,v 1.39 2002/02/05 01:28:16 harris41 Exp $
#
# Written by Scott Harrison, harris41@msu.edu
#
@@ -130,8 +130,8 @@ if ($mode eq 'install' or $mode eq 'conf
# 1st argument (mode) is: $mode
# 2nd argument (category type) is: $categorytype
# 3rd argument (distribution) is: $dist
-# 4th argument (targetroot) is: described below
-# 5th argument (sourceroot) is: described below
+# 4th argument (sourceroot) is: described below
+# 5th argument (targetroot) is: described below
END
}
@@ -183,6 +183,7 @@ $parser->xml_mode('1');
my $cleanstring;
while ($token = $parser->get_token()) {
if ($token->[0] eq 'S') {
+ print "HLOC: $hloc $token->[4]\n";
$hloc++;
$hierarchy[$hloc]++;
$key=$token->[1].join(',',@hierarchy[0..($hloc-1)]);
@@ -208,7 +209,7 @@ while ($token = $parser->get_token()) {
$cleanstring.=$token->[4];
}
if ($token->[4]=~/\/>$/) {
- $hloc--;
+# $hloc--;
}
}
if ($token->[0] eq 'E') {
@@ -281,10 +282,6 @@ my $link_count;
my $fileglob_count;
my $fileglobnames_count;
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 @buildinfo;
@@ -370,13 +367,6 @@ exit;
# ------------------------ Final output at end of markup parsing and formatting
sub end {
if ($mode eq 'html') {
- # START TEMP WAY
-# my $totallinecount;
-# my $totalbytecount;
-# map {$totallinecount+=$linecount{$_};
-# $totalbytecount+=$bytecount{$_}}
-# @categorynamelist;
- # END TEMP WAY
return "
".
"Summary of Source Repository".
"".
@@ -414,16 +404,6 @@ sub end {
"".
"