summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/python_env4
-rwxr-xr-xscripts/run.sh5
-rwxr-xr-xscripts/run_debug.sh1
-rwxr-xr-xscripts/run_server.sh5
-rwxr-xr-xscripts/run_valgrind.sh6
5 files changed, 11 insertions, 10 deletions
diff --git a/scripts/python_env b/scripts/python_env
new file mode 100644
index 0000000..2cca301
--- /dev/null
+++ b/scripts/python_env
@@ -0,0 +1,4 @@
+export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
+export PYTHONDONTWRITEBYTECODE=1
+export PYTHONOPTIMIZE=2
+export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor
diff --git a/scripts/run.sh b/scripts/run.sh
index eeebcac..3b47fe4 100755
--- a/scripts/run.sh
+++ b/scripts/run.sh
@@ -1,6 +1,3 @@
#! /usr/bin/env sh
-export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
-export PYTHONDONTWRITEBYTECODE=1
-export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor
-export mesa_glthread=true
+source ../scripts/python_env
./src/fruits/cmv/cmv "$@"
diff --git a/scripts/run_debug.sh b/scripts/run_debug.sh
index bd9a667..a56bf22 100755
--- a/scripts/run_debug.sh
+++ b/scripts/run_debug.sh
@@ -1,2 +1,3 @@
#! /usr/bin/env sh
+source ../scripts/python_env
gdb -ex run --args ./src/fruits/cmv/cmv "$@"
diff --git a/scripts/run_server.sh b/scripts/run_server.sh
index 893f5c1..22945ed 100755
--- a/scripts/run_server.sh
+++ b/scripts/run_server.sh
@@ -1,8 +1,5 @@
#! /usr/bin/env sh
-export CURL_CA_BUNDLE=/etc/ssl/certs/ca-bundle.crt
-export PYTHONDONTWRITEBYTECODE=1
-export PYTHONOPTIMIZE=2
-export PYTHONPATH=$HOME/c/camu/src/portal/vendor/vendor
+source ../scripts/python_env
# screen will use $SHELL.
screen -c ../scripts/screenrc
#valgrind --leak-check=no --show-error-list=yes --log-file=./server-valgrind.log ./src/fruits/cmsrv/cmsrv $@
diff --git a/scripts/run_valgrind.sh b/scripts/run_valgrind.sh
index 033f35a..583327c 100755
--- a/scripts/run_valgrind.sh
+++ b/scripts/run_valgrind.sh
@@ -1,3 +1,5 @@
#! /usr/bin/env sh
-valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@"
-#valgrind --leak-check=full ./src/fruits/cmv/cmv "$@"
+source ../scripts/python_env
+valgrind --leak-check=full ./src/fruits/cmv/cmv "$@"
+#valgrind --leak-check=full --show-leak-kinds=all ./src/fruits/cmv/cmv "$@"
+#valgrind --leak-check=no --show-error-list=yes ./src/fruits/cmv/cmv "$@"