3 while [ $# -gt 0 ] ; do
14 #LD_LIBRARY_PATH needs to be set (empty) so that epa can swap between the original and the bundled version
15 export LD_LIBRARY_PATH
=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
17 export PREBUNDLE_ENV
="$(env)"
19 BIN_DIR
=$
(dirname $
(readlink
-f $0))
20 INSTALL_DIR
=$
(dirname $BIN_DIR)
21 LIB_DIR
=$INSTALL_DIR/lib
22 ETC_DIR
=$INSTALL_DIR/etc
23 USER_ARDOUR_DIR
=$HOME/.config
/ardour3
25 if [ ! -d $USER_ARDOUR_DIR ] ; then
26 mkdir
-p $USER_ARDOUR_DIR ||
exit 1
29 # this triggers code in main() that will reset runtime environment variables
30 # to point to directories inside the ardour package
32 export ARDOUR_BUNDLED
=true
34 # this is edited by the build script to include relevant environment variables
38 export GTK_PATH
=$INSTALL_DIR${GTK_PATH:+:$GTK_PATH}
39 export GTK_MODULES
="" # Disable extra modules from being loaded by gtk (example, libcanberra-gtk-module.so)
40 export LD_LIBRARY_PATH
=$INSTALL_DIR/lib
${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
42 # create install-location-dependent config files for Pango and GDK image loaders
43 # We have to do this every time because its possible that BIN_DIR has changed
45 sed "s?@ROOTDIR@/modules?$LIB_DIR/modules?" < $ETC_DIR/pango.modules.
in > $USER_ARDOUR_DIR/pango.modules
46 sed "s?@ROOTDIR@/loaders?$LIB_DIR/loaders?" < $ETC_DIR/gdk-pixbuf.loaders.
in > $USER_ARDOUR_DIR/gdk-pixbuf.loaders
48 if [ "T" = "$DEBUG" ]; then
49 export ARDOUR_INSIDE_GDB
=1
50 exec gdb
$INSTALL_DIR/bin
/ardour-3.0
"$@"
52 exec $INSTALL_DIR/bin
/ardour-3.0
"$@"