summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-29 22:18:24 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-29 22:18:24 +0100
commite5f77dffaf8621f64c89a5200e208eefd4338044 (patch)
treedb4e2d08fd9dc8d818b9c7e8a55fe94e2c7143ae
parentb735a2cddc966aeac9573cfa4565a979c7cffc44 (diff)
Add run script for OS X
-rwxr-xr-xrun/dvdomatic-osx15
1 files changed, 15 insertions, 0 deletions
diff --git a/run/dvdomatic-osx b/run/dvdomatic-osx
new file mode 100755
index 000000000..ac42c3186
--- /dev/null
+++ b/run/dvdomatic-osx
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:build/src/lib:build/src:/Users/carl/Environments/osx/10.8/lib
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/src/tools/dvdomatic "$*"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" build/src/tools/dvdomatic $*
+elif [ "$1" == "--i18n" ]; then
+ shift
+ LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 build/src/tools/dvdomatic "$*"
+else
+ build/src/tools/dvdomatic "$*"
+fi