get and deploy harrison binaries.
[ardour.git] / tools / linux_packaging / ardour.sh.in
index 33dfc45515985fa6336c39fc9f7be59e858a96cd..3fce3241c1cf231077958c9298dd7f81e8aea82f 100644 (file)
@@ -25,20 +25,16 @@ BIN_DIR=$(dirname $(readlink -f $0))
 INSTALL_DIR=$(dirname $BIN_DIR)
 LIB_DIR=$INSTALL_DIR/lib
 ETC_DIR=$INSTALL_DIR/etc
-USER_ARDOUR_DIR=$HOME/.config/ardour3
-
-if [ ! -d $USER_ARDOUR_DIR ] ; then
-    mkdir -p $USER_ARDOUR_DIR || exit 1
-fi
-
-PATH="${BIN_DIR}:${PATH}"
-export PATH
 
 # this triggers code in main() that will reset runtime environment variables
 # to point to directories inside the ardour package
 
 export ARDOUR_BUNDLED=true
 
+# NSM needs a path to this script
+export ARDOUR_SELF="$0"
+
+
 # this is edited by the build script to include relevant environment variables
 
 %ENV%
@@ -48,17 +44,11 @@ export GTK_MODULES=""
 # Set this so that the executable will find all the right libraries inside the bundle
 export LD_LIBRARY_PATH=$INSTALL_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
 
-# create install-location-dependent config files for Pango and GDK image loaders
-# We have to do this every time because its possible that BIN_DIR has changed
-
-sed "s?@ROOTDIR@/modules?$LIB_DIR/modules?" < $ETC_DIR/pango.modules.in > $USER_ARDOUR_DIR/pango.modules
-sed "s?@ROOTDIR@/loaders?$LIB_DIR/loaders?" < $ETC_DIR/gdk-pixbuf.loaders.in > $USER_ARDOUR_DIR/gdk-pixbuf.loaders
-
 if [ "T" = "$DEBUG" ]; then
        export ARDOUR_INSIDE_GDB=1
-       exec gdb $INSTALL_DIR/bin/ardour-3.0
+       exec gdb $INSTALL_DIR/bin/ardour-%VER%
 else
-       exec $INSTALL_DIR/bin/ardour-3.0 $ARGS
+       exec $INSTALL_DIR/bin/ardour-%VER% $ARGS
 fi