diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-08-24 23:21:16 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-08-24 23:21:16 +0000 |
| commit | d9e2b563ce77cdaca43171c91bfd3659e049b45e (patch) | |
| tree | cf7855e59377a7bbce1f833fc302aa6a3c08f3c6 | |
| parent | osx-build.sh: if repo is checkout use 'bzr update', else 'bzr pull'. (diff) | |
| download | inkscape-d9e2b563ce77cdaca43171c91bfd3659e049b45e.tar.gz inkscape-d9e2b563ce77cdaca43171c91bfd3659e049b45e.zip | |
add debug options to launcher script
(bzr r13506.1.44)
| -rwxr-xr-x | packaging/macosx/Resources/bin/inkscape | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 8ea68c992..d0c55906d 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -6,6 +6,20 @@ # Jean-Olivier Irisson <jo.irisson@gmail.com> # +if test "x$GTK_DEBUG_LAUNCHER" != x; then + set -x +fi + +if test "x$GTK_DEBUG_GDB" != x; then + EXEC="gdb --args" +elif test "x$GTK_DEBUG_LLDB" != x; then + EXEC="lldb -- " +elif test "x$GTK_DEBUG_DTRUSS" != x; then + EXEC="dtruss" +else + EXEC=exec +fi + CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo \"$PWD\")`" # e.g. /Applications/Inkscape.app/Contents/Resources/bin TOP="`dirname \"$CWD\"`" @@ -132,4 +146,8 @@ sed 's|${CWD}|'"$ESCAPEDTOP|g" "$TOP/lib/gtk-2.0/__gtk_version__/immodules.cache sed 's|${CWD}|'"$ESCAPEDTOP|g" "$TOP/lib/gdk-pixbuf-2.0/__gdk_pixbuf_version__/loaders.cache" \ > "${INK_CACHE_DIR}/loaders.cache" -exec "$CWD/inkscape-bin" "$@" +if [ "x$GTK_DEBUG_SHELL" != "x" ]; then + exec bash +else + $EXEC "$CWD/inkscape-bin" "$@" +fi |
