2017-09-07 16:51:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if test "x$CALLTOOL_PATH" != "x"; then
|
2021-09-07 23:44:44 +02:00
|
|
|
PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}"
|
|
|
|
export PYTHONPATH
|
2017-09-07 16:51:02 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p callgraph
|
|
|
|
|
2017-09-07 17:03:22 +02:00
|
|
|
SUBITEMS="fn_graph fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
|
2017-09-07 16:51:02 +02:00
|
|
|
|
|
|
|
for calculation in $SUBITEMS; do
|
2021-09-07 23:44:44 +02:00
|
|
|
echo "======== $calculation"
|
|
|
|
python -m calltool "$calculation" > callgraph/"$calculation"
|
2017-09-07 16:51:02 +02:00
|
|
|
done
|
|
|
|
|
2018-10-29 10:37:16 +01:00
|
|
|
cat <<EOF > callgraph/README
|
2017-09-07 16:51:02 +02:00
|
|
|
This directory holds output from calltool, as run on Tor. For more
|
|
|
|
information about each of these files, see the NOTES and README files in
|
|
|
|
the calltool distribution.
|
|
|
|
|
|
|
|
You can find calltool at
|
|
|
|
https://gitweb.torproject.org/user/nickm/calltool.git
|
|
|
|
EOF
|
|
|
|
|