--- loncom/build/Attic/parse.pl 2000/12/10 03:06:11 1.8 +++ loncom/build/Attic/parse.pl 2000/12/10 04:15:23 1.9 @@ -75,7 +75,7 @@ while ($info1=~/\/isg) foreach my $m (@meta) { if ($data=~/\<($m)\>(.*?)\<\/$m\>/sgi) { my ($key,$value)=($1,$2); - $info{$hash{'TYPE'}}{$hash{'DIST'}}{$hash{'TARGET'}}{$key}= + $info{$hash{'TYPE'}}{$hash{'DIST'}}{$hash{'TARGET'}}{uc($key)}= $value; } } @@ -183,6 +183,13 @@ sub make_directory_structure_description my $description=<Directory Structure Description, $date

+The directory structure description below shows only those +directories which either contain LON-CAPA specific files +or normally do not exist on a RedHat Linux system (and +must be generated to allow proper placement of files +during LON-CAPA run-time operation). +

+

END my $maxcount=0; @@ -292,7 +299,7 @@ the specified location, then the text is red.

-

+
END my $counter=0; my @colorindex=("#80FF80","#80FFFF","#FFFF80"); @@ -346,14 +353,38 @@ END my $category=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'CATEGORY'}; my $fdescription=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'DESCRIPTION'}; my $source=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'SOURCE'}; + my $note=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'NOTE'}; + $note.="
" if $note; + my $listing=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'FILES'}; + my @E=split(/\s+/,$listing); + $source=~/(.*)\/[^\/]+$/; + my $sd=$1; + my $eflag=0; + foreach my $e (@E) { + unless (-e "../../$sd/$e") { + $e="$e"; + $eflag=1; + } + } + $listing=join("\n",@E); + $listing="listing
$listing" if $listing; + $listing.="
" if $listing; + my $build=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'BUILD'}; + $build="build
$build" if $build; + $build.="
" if $build; + my $dependencies=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'DEPENDENCIES'}; + $dependencies="dependencies
$dependencies" if $dependencies; + $dependencies.="
" if $dependencies; unless (-e "../../$source") { $source=~/([^\/]+)$/; my $s=$1; - $source="$source"; -# my $fr=`cd ../../; find . -name $s`; -# $source.="
$fr\n"; + if ($source!~/\*/) { + $source="$source"; + } + elsif ($eflag) { + $source="$source"; + } } - my $notes=$info{'LOCATION'}{$distribution}{$filesfull[$i]}{'NOTES'}; $description.=< @@ -361,7 +392,7 @@ END - + END }
$category$files[$i] $fdescription  $source$notes $note$listing$build$dependencies