mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
82168e5e8b
Use 4 spaces indentations, convert tabs to spaces. No real code changes.
30 lines
775 B
Bash
Executable File
30 lines
775 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
|
|
|
|
set -e
|
|
|
|
if test "x$CALLTOOL_PATH" != "x"; then
|
|
PYTHONPATH="${CALLTOOL_PATH}:${PYTHONPATH}"
|
|
export PYTHONPATH
|
|
fi
|
|
|
|
mkdir -p callgraph
|
|
|
|
SUBITEMS="fn_graph fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
|
|
|
|
for calculation in $SUBITEMS; do
|
|
echo "======== $calculation"
|
|
python -m calltool "$calculation" > callgraph/"$calculation"
|
|
done
|
|
|
|
cat <<EOF > callgraph/README
|
|
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
|
|
|