|
11 | 11 | while (<>) { |
12 | 12 | if (m/([^\s]*)\.vo.*:(.*)/) { |
13 | 13 | $dests = $2 ; |
14 | | - ($path,$src) = ($1 =~ s/\//\//rg =~ m/^(?:(.*\/))?([^.]*)$/); |
15 | | - if ($path =~ m/classical\//) { |
16 | | - $url="mathcomp.classical.$src.html"; |
17 | | - print "subgraph cluster_classical { \"$path$src\"[label=\"$src\",URL=\"$url\",fillcolor=1]}\n"; |
18 | | - }elsif ($path =~ m/reals\// or $path =~ m/reals_stdlib\//) { |
19 | | - print "subgraph cluster_reals { \"$path$src\"[label=\"$src\",fillcolor=2,fontcolor=white]}" |
20 | | - }elsif ($path =~ m/experimental_reals\//) { |
21 | | - print "subgraph cluster_experimental_reals { \"$path$src\"[label=\"$src\",fillcolor=3]}" |
22 | | - }elsif ($path =~ m/theories\/topology_theory\//) { |
23 | | - print "subgraph cluster_topology { \"$path$src\"[label=\"$src\",fillcolor=4,fontcolor=white]}" |
24 | | - }elsif ($path =~ m/theories\/normedtype_theory\//) { |
25 | | - print "subgraph cluster_normedtype { \"$path$src\"[label=\"$src\",fillcolor=9]}" |
26 | | - }elsif ($path =~ m/theories\/lebesgue_integral_theory\//) { |
27 | | - print "subgraph cluster_lebesgue_integral { \"$path$src\"[label=\"$src\",fillcolor=10,fontcolor=white]}" |
28 | | - }elsif ($path =~ m/theories\//) { |
29 | | - print "subgraph cluster_analysis { \"$path$src\"[label=\"$src\",fillcolor=5]}" |
30 | | - }elsif ($path =~ m/analysis_stdlib\/.*/) { |
31 | | - print "subgraph cluster_analysis { \"$path$src\"[label=\"$src\",fillcolor=5]}" |
| 14 | + ($path,$src) = ($1 =~ s/\//\//rg =~ m/^(?:(.*)\/)?([^.]*)$/); |
| 15 | + $url="mathcomp.$path.$src.html"; |
| 16 | + if ($path =~ m/classical/) { |
| 17 | + print "subgraph cluster_classical { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=1]}\n"; |
| 18 | + }elsif ($path =~ m/reals/ or $path =~ m/reals_stdlib/) { |
| 19 | + print "subgraph cluster_reals { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=2,fontcolor=white]}"; |
| 20 | + }elsif ($path =~ m/theories\/topology_theory/) { |
| 21 | + $url="mathcomp.analysis.topology_theory.$src.html"; |
| 22 | + print "subgraph cluster_topology { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=4,fontcolor=white]}"; |
| 23 | + }elsif ($path =~ m/theories\/normedtype_theory/) { |
| 24 | + $url="mathcomp.analysis.normedtype_theory.$src.html"; |
| 25 | + print "subgraph cluster_normedtype { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=9]}"; |
| 26 | + }elsif ($path =~ m/theories\/lebesgue_integral_theory/) { |
| 27 | + $url="mathcomp.analysis.lebesgue_integral_theory.$src.html"; |
| 28 | + print "subgraph cluster_lebesgue_integral { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=10,fontcolor=white]}"; |
| 29 | + }elsif ($path =~ m/theories/) { |
| 30 | + $url="mathcomp.analysis.$src.html"; |
| 31 | + print "subgraph cluster_analysis { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=5]}"; |
| 32 | + }elsif ($path =~ m/analysis_stdlib/) { |
| 33 | + print "subgraph cluster_analysis { \"$path\/$src\"[label=\"$src\",URL=\"$url\",fillcolor=5]}"; |
32 | 34 | }else { |
33 | | - $url="/mathcomp.$src.html"; |
34 | | - print "\"$path$src\"[label=\"$src\",URL=\"$url\",fillcolor=6,fontcolor=white]" |
| 35 | + print "\"$path\/$src\"[label=\"$path=$src\",fillcolor=6,fontcolor=white]"; |
35 | 36 | } |
36 | 37 | for my $dest (split(" ", $dests)) { |
37 | | - print " \"$1\" -> \"$path$src\";\n" if ($dest =~ m/(.*)\.vo/); |
| 38 | + print " \"$1\" -> \"$path\/$src\";\n" if ($dest =~ m/(.*)\.vo/); |
38 | 39 | } |
39 | 40 | } |
40 | 41 | } |
|
0 commit comments