pkgsrc/games/rftg/patches/patch-osx_bundle_launcher.sh
wiz 3cb9717a03 Update to 0.9.3:
Version 0.9.3 released, which fixes a few bugs in Alien Artifacts
cards and enables campaign mode.
2014-08-17 17:38:54 +00:00

53 lines
2.2 KiB
Bash

$NetBSD: patch-osx_bundle_launcher.sh,v 1.1 2014/08/17 17:38:54 wiz Exp $
Fix unportable test(1) construct.
--- osx/bundle/launcher.sh.orig 2014-08-11 22:27:08.000000000 +0000
+++ osx/bundle/launcher.sh
@@ -55,7 +55,7 @@ if test "$APPLELANGUAGES"; then
fi
#This is a special case, because often the original strings are in US
#English and there is no translation file.
- if test "x$L" == "xen_US"; then
+ if test "x$L" = "xen_US"; then
export LANG=$L
break
fi
@@ -65,7 +65,7 @@ if test "$APPLELANGUAGES"; then
break
fi
#Same thing, but checking for any english variant.
- if test "x${L:0:2}" == "xen"; then
+ if test "x${L:0:2}" = "xen"; then
export LANG=$L
break
fi;
@@ -105,16 +105,16 @@ if test -n $LANG; then
#If the language code matches the applelocale, then that's the message
#locale; otherwise, if it's longer than two characters, then it's
#probably a good message locale and we'll go with it.
- if test $LANG == ${APPLELOCALE:0:5} -o $LANG != ${LANG:0:2}; then
+ if test $LANG = ${APPLELOCALE:0:5} -o $LANG != ${LANG:0:2}; then
export LC_MESSAGES=$LANG
#Next try if the Applelocale is longer than 2 chars and the language
#bit matches $LANG
- elif test $LANG == ${APPLELOCALE:0:2} -a $APPLELOCALE > ${APPLELOCALE:0:2}; then
+ elif test $LANG = ${APPLELOCALE:0:2} -a $APPLELOCALE > ${APPLELOCALE:0:2}; then
export LC_MESSAGES=${APPLELOCALE:0:5}
#Fail. Get a list of the locales in $PREFIX/share/locale that match
#our two letter language code and pick the first one, special casing
#english to set en_US
- elif test $LANG == "en"; then
+ elif test $LANG = "en"; then
export LC_MESSAGES="en_US"
else
LOC=`find $PREFIX/share/locale -name $LANG???`
@@ -131,7 +131,7 @@ CURRENCY=`echo $APPLELOCALE | sed -En '
if test "x$CURRENCY" != "x"; then
#The user has set a special currency. Gtk doesn't install LC_MONETARY files, but Apple does in /usr/share/locale, so we're going to look there for a locale to set LC_CURRENCY to.
if test -f /usr/local/share/$LC_MESSAGES/LC_MONETARY; then
- if test -a `cat /usr/local/share/$LC_MESSAGES/LC_MONETARY` == $CURRENCY; then
+ if test -a `cat /usr/local/share/$LC_MESSAGES/LC_MONETARY` = $CURRENCY; then
export LC_MONETARY=$LC_MESSAGES
fi
fi