aboutsummaryrefslogtreecommitdiff
path: root/use2dot/gen_use_graph
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-22 22:44:31 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-22 22:48:37 +0100
commit66f9bc2f4ce9dfb7f90369fc23c3093c2e7835bb (patch)
tree620c67f6d6ba494aff66faacdbc9c86a89271aeb /use2dot/gen_use_graph
parentAdd script to find unused imports. (diff)
downloadcalp-66f9bc2f4ce9dfb7f90369fc23c3093c2e7835bb.tar.gz
calp-66f9bc2f4ce9dfb7f90369fc23c3093c2e7835bb.tar.xz
Complete rewrite of use2dot
Old version tried to leverage guile's built in use2dot, and then modified it to fit my needs. This new version implements its own use2dot, using the same underlying mechanism as guile's built in, giving us FAR greater flexability.
Diffstat (limited to 'use2dot/gen_use_graph')
-rwxr-xr-xuse2dot/gen_use_graph10
1 files changed, 0 insertions, 10 deletions
diff --git a/use2dot/gen_use_graph b/use2dot/gen_use_graph
deleted file mode 100755
index 51ee23b4..00000000
--- a/use2dot/gen_use_graph
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-dir=$(mktemp -d)
-here=$(dirname $(realpath $0))
-
-guild use2dot -m '(calp 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