2014-09-25 18:31:31 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test "x$TRUNNEL_PATH" != "x"; then
|
|
|
|
PYTHONPATH="${TRUNNEL_PATH}:${PYTHONPATH}"
|
|
|
|
export PYTHONPATH
|
|
|
|
fi
|
|
|
|
|
2016-12-08 22:56:24 +01:00
|
|
|
OPTIONS="--require-version=1.5.1"
|
|
|
|
|
2016-09-01 16:07:41 +02:00
|
|
|
# Get all .trunnel files recursively from that directory so we can support
|
|
|
|
# multiple sub-directories.
|
|
|
|
for file in `find ./src/trunnel/ -name '*.trunnel'`; do
|
2016-12-08 22:56:24 +01:00
|
|
|
python -m trunnel ${OPTIONS} $file
|
2016-09-01 16:07:41 +02:00
|
|
|
done
|
2014-09-25 18:31:31 +02:00
|
|
|
|
2016-12-08 22:56:24 +01:00
|
|
|
python -m trunnel ${OPTIONS} --write-c-files --target-dir=./src/ext/trunnel/
|
2014-09-25 19:16:35 +02:00
|
|
|
|