~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to packaging/macosx/Resources/script

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
CWD="`dirname \"$0\"`"
7
7
 
8
 
ps -wx -ocommand | grep -e '[X]11' > /dev/null
9
 
if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
10
 
    echo "rm -f ~/.xinitrc" > ~/.xinitrc
11
 
    sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
12
 
fi
13
 
 
14
 
cp -f "$CWD/bin/getdisplay.sh" /tmp/
15
 
rm -f /tmp/display.$UID
16
 
open-x11 /tmp/getdisplay.sh || \
17
 
open -a XDarwin /tmp/getdisplay.sh || \
18
 
echo ":0" > /tmp/display.$UID
19
 
 
20
 
while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do
21
 
    sleep 1
22
 
done
23
 
export DISPLAY="`cat /tmp/display.$UID`"
24
 
 
25
 
ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
26
 
 
 
8
# System version: 3 for Panther, 4 for Tiger, 5 for Leopard
27
9
VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'`
28
 
if [ "$VERSION" -eq "4" ]; then
29
 
  # We're on tiger.  So need to update fc-cache if it hasn't been done
30
 
  test -f ~/.inkscape/.fccache || exit 12
 
10
 
 
11
 
 
12
# For Panther and Tiger, start X11
 
13
if [[ $VERSION -le 4 ]]; then
 
14
        # FIXME apparently this removes the xterm that starts with X from xinitrc but when is it really used? Should we modify the .xinitrc of the user without warning?
 
15
        ps -wx -ocommand | grep -e '[X]11' > /dev/null
 
16
        if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
 
17
            echo "rm -f ~/.xinitrc" > ~/.xinitrc
 
18
            sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
 
19
        fi
 
20
 
 
21
        # Start X11 and get DISPLAY
 
22
        cp -f "$CWD/bin/getdisplay.sh" /tmp/
 
23
        rm -f /tmp/display.$UID
 
24
        open-x11 /tmp/getdisplay.sh || \
 
25
        open -a XDarwin /tmp/getdisplay.sh || \
 
26
        echo ":0" > /tmp/display.$UID
 
27
 
 
28
        while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do
 
29
            sleep 1
 
30
        done
 
31
        export DISPLAY="`cat /tmp/display.$UID`"
 
32
 
 
33
        ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
31
34
fi
32
35
 
 
36
# In Leopard, X11 should start on itself
 
37
 
 
38
 
 
39
# Warn the user about time-consuming generation of fontconfig caches.
 
40
test -f ~/.inkscape/.fccache-new || exit 12
 
41
 
 
42
 
33
43
BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`"
34
44
cd "$BASE"
35
45
exec "$CWD/bin/inkscape" "$@"
 
46
# TODO examine wether it would be wisest to move the code from inkscape shell script and getdisplay.sh to here and only keep the real binary in bin. This may make things easier on Leopard and may also help using Inkscape on the command line
 
 
b'\\ No newline at end of file'