aboutsummaryrefslogtreecommitdiff
path: root/use2dot/gen_use_graph
diff options
context:
space:
mode:
Diffstat (limited to 'use2dot/gen_use_graph')
-rwxr-xr-xuse2dot/gen_use_graph10
1 files changed, 10 insertions, 0 deletions
diff --git a/use2dot/gen_use_graph b/use2dot/gen_use_graph
new file mode 100755
index 00000000..030d0c7d
--- /dev/null
+++ b/use2dot/gen_use_graph
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+dir=$(mktemp -d)
+here=$(dirname $(realpath $0))
+
+guild use2dot -m '(main)' -- `find module -name \*.scm` > $dir/use.dot
+$here/change_graph.py $dir/use.dot $dir/use2.dot
+grep -v '\(srfi\|ice-9\|(util)\)' $dir/use2.dot > $dir/use3.dot
+
+fdp $dir/use3.dot -Tpdf -o use.pdf