aboutsummaryrefslogtreecommitdiff
path: root/scripts/codegen/run_trunnel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/codegen/run_trunnel.sh')
-rwxr-xr-xscripts/codegen/run_trunnel.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/codegen/run_trunnel.sh b/scripts/codegen/run_trunnel.sh
new file mode 100755
index 0000000000..5f694ce6c9
--- /dev/null
+++ b/scripts/codegen/run_trunnel.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if test "x$TRUNNEL_PATH" != "x"; then
+ PYTHONPATH="${TRUNNEL_PATH}:${PYTHONPATH}"
+ export PYTHONPATH
+fi
+
+python -m trunnel --require-version=1.2 ./src/trunnel/*.trunnel
+
+python -m trunnel --require-version=1.2 --write-c-files --target-dir=./src/ext/trunnel/
+