Update Fluidsynth to 2.0.1
[ardour.git] / tools / linux_packaging / ardour.sh.in
index 420bdf581d2cc20f1c296c084a1415c4562e310e..1a2e1206be789de533c15af555dd0d84759664ef 100644 (file)
@@ -6,7 +6,7 @@ checkdebug(){
     for arg in "$@"
         do
             case "$arg" in
-                --debug )
+                --gdb )
                     DEBUG="T"
             esac
         done
@@ -17,7 +17,7 @@ checkdebug "$@"
 
 # LD_LIBRARY_PATH needs to be set here so that epa can swap between the original and the bundled version
 # (the original one will be stored in PREBUNDLE_ENV)
-export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
 export PREBUNDLE_ENV="$(env)"
 
 BIN_DIR=$(dirname $(readlink -f $0))
@@ -47,5 +47,5 @@ if [ "T" = "$DEBUG" ]; then
        export ARDOUR_INSIDE_GDB=1
        exec gdb $INSTALL_DIR/bin/%EXENAME%-%VER%
 else
-       exec $INSTALL_DIR/bin/%EXENAME%-%VER% "$@"
+       exec %WINE% $INSTALL_DIR/bin/%EXENAME%-%VER% "$@"
 fi