tor/scripts/codegen/run_trunnel.sh

16 lines
414 B
Bash
Raw Normal View History

#!/bin/sh
if test "x$TRUNNEL_PATH" != "x"; then
PYTHONPATH="${TRUNNEL_PATH}:${PYTHONPATH}"
export PYTHONPATH
fi
2016-12-08 22:56:24 +01:00
OPTIONS="--require-version=1.5.1"
# Get all .trunnel files recursively from that directory so we can support
# multiple sub-directories.
find ./src/trunnel/ -name '*.trunnel' -exec python -m trunnel ${OPTIONS} {} \;
2016-12-08 22:56:24 +01:00
python -m trunnel ${OPTIONS} --write-c-files --target-dir=./src/ext/trunnel/