#!/bin/bash export LD_LIBRARY_PATH=build/src/lib:build/src/gtk:$LD_LIBRARY_PATH if [ "$1" == "--debug" ]; then gdb --args build/src/tools/dvdomatic $2 elif [ "$1" == "--valgrind" ]; then valgrind --tool="memcheck" build/src/tools/dvdomatic $2 else build/src/tools/dvdomatic "$1" fi