소스 검색

Make trunnel find files recursively

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 7 년 전
부모
커밋
0ba3444b4a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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/