run_calltool.sh 767 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. # You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
  3. set -e
  4. if test "x$CALLTOOL_PATH" != "x"; then
  5. PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}"
  6. export PYTHONPATH
  7. fi
  8. mkdir -p callgraph
  9. SUBITEMS="fn_graph fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
  10. for calculation in $SUBITEMS; do
  11. echo "======== $calculation"
  12. python -m calltool "$calculation" > callgraph/"$calculation"
  13. done
  14. cat <<EOF > callgraph/README
  15. This directory holds output from calltool, as run on Tor. For more
  16. information about each of these files, see the NOTES and README files in
  17. the calltool distribution.
  18. You can find calltool at
  19. https://gitweb.torproject.org/user/nickm/calltool.git
  20. EOF