sbcl.sbcl/contrib/sb-graph/render-on-change.sh
Sean Maher b91ca63476 Implement sb-graph, a plug-in to produce graphviz DOT from IR1
For documentation, read contrib/sb-graph/readme.org and
contrib/sb-graph/sb-graph.texinfo
sb-graph requires the :sb-devel feature.
2021-07-12 12:58:09 -04:00

9 lines
175 B
Bash
Executable file

#!/bin/bash
inotifywait -e close_write,moved_to,create -m . |
while read -r directory events filename; do
if [ "$filename" = "$1" ]; then
dot -Tsvg $1 > $2
fi
done