[tor-commits] [tor/master] Make trunnel find files recursively

nickm at torproject.org nickm at torproject.org
Mon Oct 31 20:32:19 UTC 2016


commit 0ba3444b4a9d408573a442b32be794a78b9250b5
Author: David Goulet <dgoulet at torproject.org>
Date:   Thu Sep 1 10:07:41 2016 -0400

    Make trunnel find files recursively
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 scripts/codegen/run_trunnel.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/codegen/run_trunnel.sh b/scripts/codegen/run_trunnel.sh
index d266993..c574ea8 100755
--- a/scripts/codegen/run_trunnel.sh
+++ b/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/
 





More information about the tor-commits mailing list