~inkscape.dev/inkscape/trunk

« back to all changes in this revision

Viewing changes to packaging/macosx/Resources/bin/inkscape

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Author: Aaron Voisine <aaron@voisine.org>
 
4
# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
 
5
 
 
6
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
 
7
TOP="`dirname \"$CWD\"`"
 
8
 
 
9
export "DYLD_LIBRARY_PATH=$TOP/lib"
 
10
export "PATH=$CWD:$PATH"
 
11
export "PANGO_RC_FILE=$HOME/.inkscape-etc/pangorc"
 
12
export "FONTCONFIG_PATH=$TOP/etc/fonts"
 
13
export "GTK_IM_MODULE_FILE=$HOME/.inkscape-etc/gtk.immodules"
 
14
export "GDK_PIXBUF_MODULE_FILE=$HOME/.inkscape-etc/gdk-pixbuf.loaders"
 
15
export "GTK_DATA_PREFIX=$TOP"
 
16
export "GTK_EXE_PREFIX=$TOP"
 
17
export "GNOME_VFS_MODULE_CONFIG_PATH=$TOP/etc/gnome-vfs-2.0/modules"
 
18
export "GNOME_VFS_MODULE_PATH=$TOP/lib/gnome-vfs-2.0/modules"
 
19
 
 
20
export "INKSCAPE_SHAREDIR=$TOP"
 
21
export "INKSCAPE_PLUGINDIR=$TOP/lib/inkscape"
 
22
export "INKSCAPE_LOCALEDIR=$TOP/locale"
 
23
 
 
24
# TODO: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape
 
25
#       to crash on startup in locale_from_utf8().
 
26
export "LANG=`grep \"\`defaults read .GlobalPreferences AppleCollationOrder \
 
27
        2>&1\`_\" /usr/share/locale/locale.alias | tail -n1 | sed 's/\./ /' | \
 
28
        awk '{print $2}'`.UTF-8"
 
29
 
 
30
mkdir -p ~/.inkscape-etc
 
31
sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > ~/.inkscape-etc/pangorc
 
32
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/pango/pango.modules" \
 
33
    > ~/.inkscape-etc/pango.modules
 
34
cp -f "$TOP/etc/pango/pangox.aliases" ~/.inkscape-etc/
 
35
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gtk.immodules" \
 
36
    > ~/.inkscape-etc/gtk.immodules
 
37
sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gdk-pixbuf.loaders" \
 
38
    > ~/.inkscape-etc/gdk-pixbuf.loaders
 
39
 
 
40
exec "$CWD/inkscape-bin" "$@"