Browse Source

Make trunnel find files recursively

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 7 years ago
parent
commit
0ba3444b4a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      scripts/codegen/run_trunnel.sh

+ 5 - 1
scripts/codegen/run_trunnel.sh

@@ -5,7 +5,11 @@ if test "x$TRUNNEL_PATH" != "x"; then
   export PYTHONPATH
 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/