We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0847e2f commit 98089deCopy full SHA for 98089de
OMCompiler/Compiler/boot/graphviz-import.sh
@@ -0,0 +1,13 @@
1
+echo "digraph depends {" > depends.dot
2
+for f in `grep ALL_SOURCES Makefile.sources | cut -d= -f2`; do
3
+ f2=`echo $f | cut -d/ -f3 | cut -d. -f1`
4
+ echo " \"$f2\" [label=\"$f2\"];" >> depends.dot
5
+ for i in `egrep "^ *(public|protected)? *import" "$f" | grep -o "import \+[A-Za-z0-9_]\+ *;" | cut -d" " -f2 | cut -d";" -f1`; do
6
+ echo " \"$f2\" -> \"$i\";" >> depends.dot
7
+ done
8
+ for i in `egrep "^ *(public|protected)? *import" "$f" | grep -o "import \+[A-Za-z0-9_]\+ *= *[A-Za-z0-9_]\+ *;" | cut -d= -f2 | cut -d";" -f1`; do
9
10
11
+done
12
+echo "}" >> depends.dot
13
+gv2gml depends.dot > depends.gml
0 commit comments