summaryrefslogtreecommitdiff
path: root/run/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-14 16:15:37 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-14 16:15:37 +0000
commit1a1f074d64d05ba9108e9046a44b98a1976e5ef2 (patch)
tree9090f81e22547a5d76856f132d83208bed49a63c /run/tools
parentd75cf725d6368f717832ccf3ca6cdb207b8e0cde (diff)
New dcpkdm tool.
Diffstat (limited to 'run/tools')
-rwxr-xr-xrun/tools/dcpkdm12
1 files changed, 12 insertions, 0 deletions
diff --git a/run/tools/dcpkdm b/run/tools/dcpkdm
new file mode 100755
index 00000000..0a08605b
--- /dev/null
+++ b/run/tools/dcpkdm
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src:build/asdcplib/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/tools/dcpkdm "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcpkdm "$@"
+else
+ build/tools/dcpkdm "$@"
+fi