Merge branch 'bug26924_029' into bug26924_032
[tor.git] / scripts / maint / run_calltool.sh
blobefb8706fea10105e6738691074734563830f086e
1 #!/bin/sh
3 # You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
5 set -e
7 if test "x$CALLTOOL_PATH" != "x"; then
8 PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}"
9 export PYTHONPATH
12 mkdir -p callgraph
14 SUBITEMS="fn_graph fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
16 for calculation in $SUBITEMS; do
17 echo "======== $calculation"
18 python -m calltool $calculation > callgraph/$calculation
19 done
21 echo <<EOF > callgraph/README
22 This directory holds output from calltool, as run on Tor. For more
23 information about each of these files, see the NOTES and README files in
24 the calltool distribution.
26 You can find calltool at
27 https://gitweb.torproject.org/user/nickm/calltool.git
28 EOF