2006-06-26 20:45:25 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Author: Aaron Voisine <aaron@voisine.org>
|
|
|
|
|
|
|
|
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
|
|
|
|
TOP="`dirname \"$CWD\"`"
|
|
|
|
ETC=$HOME/Library/"Application Support"/Ardour
|
|
|
|
|
|
|
|
export "DYLD_LIBRARY_PATH=$TOP/lib"
|
|
|
|
export "PATH=$CWD:$PATH"
|
|
|
|
export "PANGO_RC_FILE=$ETC/pangorc"
|
|
|
|
export "FONTCONFIG_PATH=$TOP/etc/fonts"
|
|
|
|
export "GTK_IM_MODULE_FILE=$ETC/gtk.immodules"
|
|
|
|
export "GDK_PIXBUF_MODULE_FILE=$ETC/gdk-pixbuf.loaders"
|
|
|
|
export "GTK_DATA_PREFIX=$TOP"
|
|
|
|
export "GTK_EXE_PREFIX=$TOP"
|
|
|
|
export "GS_LIB=$TOP/share/ghostscript/8.51/lib:$TOP/share/ghostscript/fonts"
|
|
|
|
export LANG=`grep '\b'\`defaults read .GlobalPreferences AppleCollationOrder\`_\
|
|
|
|
/usr/share/locale/locale.alias | sed -n 's/.*\(.._..\)\..*/\1/p;1q'`
|
|
|
|
|
2009-02-18 13:32:13 -05:00
|
|
|
export ARDOUR3_UI_RC=ardour3_ui.rc
|
2006-06-28 23:53:23 -04:00
|
|
|
export ARDOUR_CONFIG_PATH="$TOP/etc"
|
2006-12-27 00:29:58 -05:00
|
|
|
export ARDOUR_MODULE_PATH="$TOP/lib/"
|
2006-06-28 23:53:23 -04:00
|
|
|
export ARDOUR_DATA_PATH="$TOP/share"
|
2009-02-18 13:32:13 -05:00
|
|
|
export ARDOUR_GLADE_PATH="$TOP/share/ardour3/glade"
|
2006-06-28 23:53:23 -04:00
|
|
|
|
2008-02-16 17:55:47 -05:00
|
|
|
export ARDOUR_PATH="$TOP/share/ardour/icons:$TOP/share/ardour/pixmaps"
|
|
|
|
|
|
|
|
|
|
|
|
export LADSPA_RDF_PATH="$HOME/Library/Audio/Plug-Ins/LADSPA/rdf:/Library/Audio/Plug-Ins/LADSPA/rdf:$TOP/share/ladspa/rdf:/usr/local/share/ladspa/rdf:/usr/share/ladspa/rdf"
|
|
|
|
export LADSPA_PATH="$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA:/usr/local/lib/ladspa:/usr/lib/ladspa"
|
|
|
|
|
|
|
|
export VAMP_PATH="$TOP/lib/vamp-plugins"
|
2006-06-26 20:45:25 -04:00
|
|
|
|
|
|
|
mkdir -p "$ETC"
|
|
|
|
sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > "$ETC/pangorc"
|
|
|
|
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/pango/pango.modules" > "$ETC/pango.modules"
|
|
|
|
cp -f "$TOP/etc/pango/pangox.aliases" "$ETC"
|
|
|
|
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gtk.immodules" > "$ETC/gtk.immodules"
|
|
|
|
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gdk-pixbuf.loaders" \
|
|
|
|
> "$ETC/gdk-pixbuf.loaders"
|
|
|
|
|
2006-12-26 22:59:19 -05:00
|
|
|
# to prevent complaining
|
2009-02-18 13:32:13 -05:00
|
|
|
mkdir -p "$HOME/.ardour3/templates"
|
2006-12-26 22:59:19 -05:00
|
|
|
|
2006-06-26 20:45:25 -04:00
|
|
|
exec "$CWD/ardour" "$@"
|