diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-27 14:41:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-27 14:41:33 +0000 |
| commit | 8c2f3517e868078b551bb01d975f2956cb692fbf (patch) | |
| tree | 81bf98f00b9a267a73494c1939c6e9473559c85e /run/examples | |
| parent | e5d368553b47a566a83d4edce0a8f166db9509e6 (diff) | |
Various tinkerings.
Diffstat (limited to 'run/examples')
| -rwxr-xr-x | run/examples/read_dcp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run/examples/read_dcp b/run/examples/read_dcp new file mode 100755 index 00000000..92f25b21 --- /dev/null +++ b/run/examples/read_dcp @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=build/src +if [ "$1" == "--debug" ]; then + shift + gdb --args build/examples/read_dcp "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/read_dcp "$@" +else + build/examples/read_dcp "$@" +fi |
