From 0ba3444b4a9d408573a442b32be794a78b9250b5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 1 Sep 2016 10:07:41 -0400 Subject: Make trunnel find files recursively Signed-off-by: David Goulet --- scripts/codegen/run_trunnel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/codegen') 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/ -- cgit v1.2.3-54-g00ecf