summaryrefslogtreecommitdiff
path: root/scripts/codegen
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-09-01 10:07:41 -0400
committerDavid Goulet <dgoulet@torproject.org>2016-10-31 16:03:28 -0400
commit0ba3444b4a9d408573a442b32be794a78b9250b5 (patch)
treef4e57821426ebaf5be592a1ed5dc28017912534e /scripts/codegen
parent59a78187cdf9c48f492e92c3a33ce17b75f7472d (diff)
downloadtor-0ba3444b4a9d408573a442b32be794a78b9250b5.tar.gz
tor-0ba3444b4a9d408573a442b32be794a78b9250b5.zip
Make trunnel find files recursively
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'scripts/codegen')
-rwxr-xr-xscripts/codegen/run_trunnel.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/codegen/run_trunnel.sh b/scripts/codegen/run_trunnel.sh
index d2669931e9..c574ea8069 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/