summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/Resources
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-08-20 03:13:01 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-08-20 03:13:01 +0000
commitc65f6a562ec06e045ad352b952ee19f738deddb6 (patch)
treeadd1b7d0995dd5cbe2130bd6e55606d88363ca6e /packaging/macosx/Resources
parentScriptExec: cleanup (remove defined but not used function) (diff)
downloadinkscape-c65f6a562ec06e045ad352b952ee19f738deddb6.tar.gz
inkscape-c65f6a562ec06e045ad352b952ee19f738deddb6.zip
macosx packaging: a few minor changes
(bzr r13506.1.17)
Diffstat (limited to 'packaging/macosx/Resources')
-rwxr-xr-xpackaging/macosx/Resources/bin/inkscape12
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape
index 510e91e32..ea52602a2 100755
--- a/packaging/macosx/Resources/bin/inkscape
+++ b/packaging/macosx/Resources/bin/inkscape
@@ -88,9 +88,9 @@ if [ "x$LANGSTR" == "x" -o "x$LANGSTR" == "xroot" ]
then
LANGSTR=`defaults read .GlobalPreferences AppleLocale 2>/dev/null | \
sed 's/_.*//'`
- echo "Setting LANGSTR from AppleLocale: $LANGSTR" 1>&2
+ [ $_DEBUG ] && echo "Setting LANGSTR from AppleLocale: $LANGSTR" 1>&2
else
- echo "Setting LANGSTR from AppleCollationOrder: $LANGSTR" 1>&2
+ [ $_DEBUG ] && echo "Setting LANGSTR from AppleCollationOrder: $LANGSTR" 1>&2
fi
# NOTE: Have to add ".UTF-8" to the LANG since omitting causes Inkscape
@@ -98,7 +98,7 @@ fi
if [ "x$LANGSTR" == "x" ]
then
# override broken script
- echo "Overriding empty LANGSTR" 1>&2
+ [ $_DEBUG ] && echo "Overriding empty LANGSTR" 1>&2
export LANG="en_US.UTF-8"
else
tmpLANG="`grep \"\`echo $LANGSTR\`_\" /usr/share/locale/locale.alias | \
@@ -106,14 +106,14 @@ else
if [ "x$tmpLANG" == "x" ]
then
# override broken script
- echo "Overriding empty LANG from /usr/share/locale/locale.alias" 1>&2
+ [ $_DEBUG ] && echo "Overriding empty LANG from /usr/share/locale/locale.alias" 1>&2
export LANG="en_US.UTF-8"
else
- echo "Setting LANG from /usr/share/locale/locale.alias" 1>&2
+ [ $_DEBUG ] && echo "Setting LANG from /usr/share/locale/locale.alias" 1>&2
export LANG="$tmpLANG.UTF-8"
fi
fi
-echo "Setting Language: $LANG" 1>&2
+[ $_DEBUG ] && echo "Setting Language: $LANG" 1>&2
export LC_ALL="$LANG"
sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > "$PREFDIR/pangorc"