run_trunnel.sh 433 B

1234567891011121314151617
  1. #!/bin/sh
  2. if test "x$TRUNNEL_PATH" != "x"; then
  3. PYTHONPATH="${TRUNNEL_PATH}:${PYTHONPATH}"
  4. export PYTHONPATH
  5. fi
  6. OPTIONS="--require-version=1.5.1"
  7. # Get all .trunnel files recursively from that directory so we can support
  8. # multiple sub-directories.
  9. for file in `find ./src/trunnel/ -name '*.trunnel'`; do
  10. python -m trunnel ${OPTIONS} $file
  11. done
  12. python -m trunnel ${OPTIONS} --write-c-files --target-dir=./src/ext/trunnel/