summaryrefslogtreecommitdiff
path: root/run/servomatic
diff options
context:
space:
mode:
Diffstat (limited to 'run/servomatic')
-rwxr-xr-xrun/servomatic10
1 files changed, 10 insertions, 0 deletions
diff --git a/run/servomatic b/run/servomatic
new file mode 100755
index 000000000..100d0a8bd
--- /dev/null
+++ b/run/servomatic
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+ gdb --args build/src/tools/servomatic
+elif [ "$1" == "--valgrind" ]; then
+ valgrind --tool="memcheck" build/src/tools/servomatic
+else
+ build/src/tools/servomatic
+fi