diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-22 18:57:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-22 18:57:05 +0100 |
| commit | 0251d3f2986bf70d4721b7127ca6ddcc9da3b256 (patch) | |
| tree | 5b8bee96ae9bd53c7e78c264cdf08993f3a28e41 /run/examples | |
| parent | 422c8a63d2368a2e63aee4c391207e3332d1d4c7 (diff) | |
Add basic example; tweak bits and pieces.
Diffstat (limited to 'run/examples')
| -rwxr-xr-x | run/examples/make_dcp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run/examples/make_dcp b/run/examples/make_dcp new file mode 100755 index 00000000..1649c0c6 --- /dev/null +++ b/run/examples/make_dcp @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=build/src +if [ "$1" == "--debug" ]; then + shift + gdb --args build/examples/make_dcp "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/make_dcp "$@" +else + build/examples/make_dcp "$@" +fi |
