Make trunnel find files recursively

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2016-09-01 10:07:41 -04:00
parent 59a78187cd
commit 0ba3444b4a

View File

@ -5,7 +5,11 @@ if test "x$TRUNNEL_PATH" != "x"; then
export PYTHONPATH export PYTHONPATH
fi fi
python -m trunnel --require-version=1.4 ./src/trunnel/*.trunnel # Get all .trunnel files recursively from that directory so we can support
# multiple sub-directories.
for file in `find ./src/trunnel/ -name '*.trunnel'`; do
python -m trunnel --require-version=1.4 $file
done
python -m trunnel --require-version=1.4 --write-c-files --target-dir=./src/ext/trunnel/ python -m trunnel --require-version=1.4 --write-c-files --target-dir=./src/ext/trunnel/