projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix yet another oversight for the windows icon file update
[ardour.git]
/
gtk2_ardour
/
ardour.sh.in
diff --git
a/gtk2_ardour/ardour.sh.in
b/gtk2_ardour/ardour.sh.in
index d7297fd77cd91d891beeed4e3a2373161174dcd4..407c808a0e9d903f5ca958675905159361651ebe 100644
(file)
--- a/
gtk2_ardour/ardour.sh.in
+++ b/
gtk2_ardour/ardour.sh.in
@@
-1,10
+1,13
@@
#!/bin/sh
#!/bin/sh
-export GTK_PATH=@LIBDIR@/ardour3${GTK_PATH:+:$GTK_PATH}
+#
+# This script runs an installed version of Ardour. It sets a few environment variables
+# and does a few checks before exec'ing the real executable.
+#
-export
LD_LIBRARY_PATH=@LIBDIR@/ardour3${LD_LIBRARY_PATH:+:$LD_LIBRARY
_PATH}
-# DYLD_LIBRARY_PATH is for Darwin
-export
DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
+export
GTK_PATH=@CONFDIR@:@LIBDIR@${GTK_PATH:+:$GTK
_PATH}
+
+export
LD_LIBRARY_PATH=@LIBDIR@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
## Memlock check
## Memlock check
@@
-20,9
+23,9
@@
fi
## Glib atomic test
## Glib atomic test
-GLIB=$(ldd @LIBDIR@/ardour
3/ardour-@VERSION@ 2> /dev/null | grep glib-2.0 | sed 's/.*=> \([^ ]*\) .*/\1
/')
+GLIB=$(ldd @LIBDIR@/ardour
-@VERSION@ 2> /dev/null | grep glib-2.0 | sed 's/.*=> \([^ ]*\)/\1/;s/ .*/
/')
-if [ "$GLIB" = "" ]; then
+if
! type nm >/dev/null 2>&1 ||
[ "$GLIB" = "" ]; then
echo "WARNING: Could not check your glib-2.0 for mutex locking atomic operations."
echo ""
elif [ $(nm -D --radix=dec --defined-only -S $GLIB | grep -w g_atomic_int_add | cut -d ' ' -f 2) -gt 32 ]; then
echo "WARNING: Could not check your glib-2.0 for mutex locking atomic operations."
echo ""
elif [ $(nm -D --radix=dec --defined-only -S $GLIB | grep -w g_atomic_int_add | cut -d ' ' -f 2) -gt 32 ]; then
@@
-36,6
+39,30
@@
elif [ $(nm -D --radix=dec --defined-only -S $GLIB | grep -w g_atomic_int_add |
echo ""
fi
echo ""
fi
-exec @LIBDIR@/ardour3/ardour-@VERSION@ "$@"
+#
+# Running Ardour requires these 3 variables to be set
+#
+
+export ARDOUR_DATA_PATH=@DATADIR@
+export ARDOUR_CONFIG_PATH=@CONFDIR@
+export ARDOUR_DLL_PATH=@LIBDIR@
+
+#
+# NSM needs a path to this script
+#
+
+export ARDOUR_SELF="$0"
+#
+# VAMP has its own lookup path
+#
+
+export VAMP_PATH=@LIBDIR@/vamp${VAMP_PATH:+:$VAMP_PATH}
+
+if [ $# -gt 0 ] ; then
+ case $1 in
+ -g|--gdb) GDB=gdb; shift ;;
+ esac
+fi
+exec $GDB @LIBDIR@/ardour-@VERSION@ "$@"