|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 |
| -DIR= $(dirname $0) |
4 |
| -echo "DIR = \"$DIR\"" |
| 3 | +# this should be call from root as |
| 4 | +# % dev/tools/make-depends.sh |
5 | 5 |
|
| 6 | +(echo "digraph stdlib_deps {"; |
| 7 | +coqdep -R theories Coq theories | sed -n -e 's,/,.,g;s/[.]vo.*: [^ ]*v//p' | \ |
| 8 | + while read src dst; do |
| 9 | + for d in $dst; do |
| 10 | + d=${d#theories.} |
| 11 | + echo "\"${src#theories.}\" -> \"${d%.vo}\" ;" |
| 12 | + done |
| 13 | + done; |
| 14 | +echo "}") | tred \ |
| 15 | +| sed -e 's/"Arith[.]All[.][^"]*"/"coq-stdlib-arith"/g' \ |
| 16 | +| sed -e 's/"Arith[.]Base[.][^"]*"/"coq-stdlib-arith-base"/g' \ |
| 17 | +| sed -e 's/"Numbers[.]NumPrelude"/"coq-stdlib-arith-base"/g' \ |
| 18 | +| sed -e 's/"Numbers[.]NatInt[.][^"]*"/"coq-stdlib-arith-base"/g' \ |
| 19 | +| sed -e 's/"Numbers[.]Natural[.]Abstract[.][^"]*"/"coq-stdlib-arith-base"/g' \ |
| 20 | +| sed -e 's/"Classes[.]Arith[.][^"]*"/"coq-stdlib-arith-base"/g' \ |
| 21 | +| sed -e 's/"Bool[.][^"]*"/"coq-stdlib-bool"/g' \ |
| 22 | +| sed -e 's/"Classes[.]All[.][^"]*"/"coq-stdlib-classes"/g' \ |
| 23 | +| sed -e 's/"Logic[.]Classical[.][^"]*"/"coq-stdlib-classical-logic"/g' \ |
| 24 | +| sed -e 's/"Compat[.][^"]*"/"coq-stdlib-compat"/g' \ |
| 25 | +| sed -e 's/"derive[.][^"]*"/"coq-stdlib-derive"/g' \ |
| 26 | +| sed -e 's/"extraction[.]All[.][^"]*"/"coq-stdlib-extraction"/g' \ |
| 27 | +| sed -e 's/"extraction[.]Base[.][^"]*"/"coq-stdlib-extraction-base"/g' \ |
| 28 | +| sed -e 's/"QArith[.]Field[.][^"]*"/"coq-stdlib-field"/g' \ |
| 29 | +| sed -e 's/"setoid_ring[.]Q[.][^"]*"/"coq-stdlib-field"/g' \ |
| 30 | +| sed -e 's/"FSets[.][^"]*"/"coq-stdlib-fmaps-fsets-msets"/g' \ |
| 31 | +| sed -e 's/"MSets[.][^"]*"/"coq-stdlib-fmaps-fsets-msets"/g' \ |
| 32 | +| sed -e 's/"funind[.][^"]*"/"coq-stdlib-funind"/g' \ |
| 33 | +| sed -e 's/"omega[.][^"]*"/"coq-stdlib-lia"/g' \ |
| 34 | +| sed -e 's/"micromega[.]Zify[.][^"]*"/"coq-stdlib-lia"/g' \ |
| 35 | +| sed -e 's/"micromega[.]Lia[.][^"]*"/"coq-stdlib-lia"/g' \ |
| 36 | +| sed -e 's/"Lists[.][^"]*"/"coq-stdlib-list"/g' \ |
| 37 | +| sed -e 's/"Numbers[.]NaryFunctions"/"coq-stdlib-list"/g' \ |
| 38 | +| sed -e 's/"Logic[.]Lists[.][^"]*"/"coq-stdlib-list"/g' \ |
| 39 | +| sed -e 's/"Classes[.]Lists[.][^"]*"/"coq-stdlib-list"/g' \ |
| 40 | +| sed -e 's/"Logic[.]Base[.][^"]*"/"coq-stdlib-logic"/g' \ |
| 41 | +| sed -e 's/"micromega[.]Lqa[.][^"]*"/"coq-stdlib-lqa"/g' \ |
| 42 | +| sed -e 's/"NArith[.][^"]*"/"coq-stdlib-narith"/g' \ |
| 43 | +| sed -e 's/"nsatz[.][^"]*"/"coq-stdlib-nsatz"/g' \ |
| 44 | +| sed -e 's/"Structures[.]Ex[.][^"]*"/"coq-stdlib-orders-ex"/g' \ |
| 45 | +| sed -e 's/"Numbers[.]AltBinNotations"/"coq-stdlib-orders-positive"/g' \ |
| 46 | +| sed -e 's/"PArith[.][^"]*"/"coq-stdlib-positive"/g' \ |
| 47 | +| sed -e 's/"Array[.][^"]*"/"coq-stdlib-primitive-array"/g' \ |
| 48 | +| sed -e 's/"Floats[.][^"]*"/"coq-stdlib-primitive-floats"/g' \ |
| 49 | +| sed -e 's/"Numbers[.]Cyclic[^"]*"/"coq-stdlib-primitive-int"/g' \ |
| 50 | +| sed -e 's/"micromega[.]Int63[^"]*"/"coq-stdlib-primitive-int"/g' \ |
| 51 | +| sed -e 's/"Strings[.]PString"/"coq-stdlib-primitive-string"/g' \ |
| 52 | +| sed -e 's/"Program[.]All[.][^"]*"/"coq-stdlib-program"/g' \ |
| 53 | +| sed -e 's/"QArith[.]All[.][^"]*"/"coq-stdlib-qarith"/g' \ |
| 54 | +| sed -e 's/"Numbers[.]Q[.][^"]*"/"coq-stdlib-qarith"/g' \ |
| 55 | +| sed -e 's/"QArith[.]Base[.][^"]*"/"coq-stdlib-qarith-base"/g' \ |
| 56 | +| sed -e 's/"Reals[.][^"]*"/"coq-stdlib-reals"/g' \ |
| 57 | +| sed -e 's/"setoid_ring[.]R[.][^"]*"/"coq-stdlib-reals"/g' \ |
| 58 | +| sed -e 's/"micromega[.]Lra[.][^"]*"/"coq-stdlib-reals"/g' \ |
| 59 | +| sed -e 's/"Numbers[.]R[.][^"]*"/"coq-stdlib-reals"/g' \ |
| 60 | +| sed -e 's/"Relations[.]All[.][^"]*"/"coq-stdlib-relations"/g' \ |
| 61 | +| sed -e 's/"ZArith[.]Ring[.][^"]*"/"coq-stdlib-ring"/g' \ |
| 62 | +| sed -e 's/"setoid_ring[.]Z[.][^"]*"/"coq-stdlib-ring"/g' \ |
| 63 | +| sed -e 's/"rtauto[.][^"]*"/"coq-stdlib-rtauto"/g' \ |
| 64 | +| sed -e 's/"Sets[.][^"]*"/"coq-stdlib-sets"/g' \ |
| 65 | +| sed -e 's/"Sorting[.][^"]*"/"coq-stdlib-sorting"/g' \ |
| 66 | +| sed -e 's/"Streams[.][^"]*"/"coq-stdlib-streams"/g' \ |
| 67 | +| sed -e 's/"Strings[.][^"]*"/"coq-stdlib-string"/g' \ |
| 68 | +| sed -e 's/"Numbers[.]Strings[.][^"]*"/"coq-stdlib-string"/g' \ |
| 69 | +| sed -e 's/"Structures[.]Def[.][^"]*"/"coq-stdlib-structures"/g' \ |
| 70 | +| sed -e 's/"Unicode[.][^"]*"/"coq-stdlib-unicode"/g' \ |
| 71 | +| sed -e 's/"Vectors[.][^"]*"/"coq-stdlib-vectors"/g' \ |
| 72 | +| sed -e 's/"Wellfounded[.][^"]*"/"coq-stdlib-wellfounded"/g' \ |
| 73 | +| sed -e 's/"Numbers[.]Natural[.]Binary[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 74 | +| sed -e 's/"ZArith[.]All[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 75 | +| sed -e 's/"Numbers[.]Integer[.]Binary[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 76 | +| sed -e 's/"Numbers[.]Integer[.]NatPairs[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 77 | +| sed -e 's/"Numbers[.]Z[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 78 | +| sed -e 's/"btauto[.][^"]*"/"coq-stdlib-zarith"/g' \ |
| 79 | +| sed -e 's/"Numbers[.]Integer[.]Abstract[.][^"]*"/"coq-stdlib-zarith-base"/g' \ |
| 80 | +| sed -e 's/"ZArith[.]Base[.][^"]*"/"coq-stdlib-zarith-base"/g' \ |
| 81 | +| tail -n +2 | head -n -1 \ |
| 82 | +| sort | uniq \ |
| 83 | +> depends_core |
6 | 84 |
|
7 |
| -# (echo "digraph stdlib_deps {"; |
8 |
| -# echo "node [shape=ellipse, style=filled, color=lightblue];"; |
9 |
| -# coqdep -R ../coq/theories Coq ../coq/theories | sed -n -e 's,/,.,g;s/[.]vo.*: [^ ]*v//p' | \ |
10 |
| -# while read src dst; do |
11 |
| -# for d in $dst; do |
12 |
| -# d=${d#...coq.theories.} |
13 |
| -# echo "\"${src#...coq.theories.}\" -> \"${d%.vo}\" ;" |
14 |
| -# done |
15 |
| -# done; |
16 |
| -# echo "}") | tred >> depends |
| 85 | +(echo "digraph stdlib_deps {"; |
| 86 | +echo "node [shape=ellipse, style=filled, color=lightblue];"; |
| 87 | +awk -f dev/tools/depends-rm-loops.awk depends_core; |
| 88 | +echo "}") | tred > depends |
| 89 | + |
| 90 | +rm -f depends_core |
0 commit comments