tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

run_calltool.sh (772B)


      1 #!/bin/sh
      2 
      3 # You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
      4 
      5 set -e
      6 
      7 if test "$CALLTOOL_PATH" != ""; then
      8    PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}"
      9    export PYTHONPATH
     10 fi
     11 
     12 mkdir -p callgraph
     13 
     14 SUBITEMS="fn_graph fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
     15 
     16 for calculation in $SUBITEMS; do
     17    echo "======== $calculation"
     18    python -m calltool "$calculation" > callgraph/"$calculation"
     19 done
     20 
     21 cat <<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.
     25 
     26 You can find calltool at
     27    https://gitweb.torproject.org/user/nickm/calltool.git
     28 EOF