[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Make trunnel find files recursively
commit 0ba3444b4a9d408573a442b32be794a78b9250b5
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Thu Sep 1 10:07:41 2016 -0400
Make trunnel find files recursively
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
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/
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits