diff options
author | Daiki Ueno <ueno@gnu.org> | 2016-06-08 15:27:59 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2016-06-08 15:28:49 +0900 |
commit | 59d9b55bb203ec78be4ace221123e0d1b5827b35 (patch) | |
tree | 4bbc2d778869beac6c86475523d366b7e8700966 /gettext-tools/tests/lang-pascal | |
parent | a2a048cfe39504db09cfbbfdfc6cb9f417b3789f (diff) | |
download | external_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.zip external_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.tar.gz external_gettext-59d9b55bb203ec78be4ace221123e0d1b5827b35.tar.bz2 |
tests: Use Exit instead of exit if init.sh is used
* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
init.sh.
Diffstat (limited to 'gettext-tools/tests/lang-pascal')
-rwxr-xr-x | gettext-tools/tests/lang-pascal | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gettext-tools/tests/lang-pascal b/gettext-tools/tests/lang-pascal index 76a12b6..a6781e8 100755 --- a/gettext-tools/tests/lang-pascal +++ b/gettext-tools/tests/lang-pascal @@ -30,12 +30,12 @@ EOF (ppcx64 pascalprog.pp) >/dev/null 2>&1 || { echo "Skipping test: Pascal compiler ppc386 or ppcx64 not found" - exit 77 + Exit 77 } : ${XGETTEXT=xgettext} -${XGETTEXT} -o pascalprog.tmp --omit-header --add-location pascalprog.rst || exit 1 -LC_ALL=C tr -d '\r' < pascalprog.tmp > pascalprog.pot || exit 1 +${XGETTEXT} -o pascalprog.tmp --omit-header --add-location pascalprog.rst || Exit 1 +LC_ALL=C tr -d '\r' < pascalprog.tmp > pascalprog.pot || Exit 1 cat <<EOF > pascalprog.ok #: pascalprog.question @@ -49,7 +49,7 @@ msgstr "" EOF : ${DIFF=diff} -${DIFF} pascalprog.ok pascalprog.pot || exit 1 +${DIFF} pascalprog.ok pascalprog.pot || Exit 1 cat <<\EOF > fr.po msgid "" @@ -67,11 +67,11 @@ msgstr "%1:s remplace %0:s." EOF : ${MSGMERGE=msgmerge} -${MSGMERGE} -q -o fr.po.tmp fr.po pascalprog.pot || exit 1 -LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new || exit 1 +${MSGMERGE} -q -o fr.po.tmp fr.po pascalprog.pot || Exit 1 +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new || Exit 1 : ${DIFF=diff} -${DIFF} fr.po fr.po.new || exit 1 +${DIFF} fr.po fr.po.new || Exit 1 test -d fr || mkdir fr test -d fr/LC_MESSAGES || mkdir fr/LC_MESSAGES @@ -93,16 +93,16 @@ EOF : ${LOCALE_FR_UTF8=fr_FR.UTF-8} if test $LOCALE_FR != none; then prepare_locale_ fr $LOCALE_FR - LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR ./pascalprog > pascalprog.out || exit 1 + LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR ./pascalprog > pascalprog.out || Exit 1 : ${DIFF=diff} - ${DIFF} pascalprog.ok pascalprog.out || exit 1 + ${DIFF} pascalprog.ok pascalprog.out || Exit 1 fi if test -z "$UTF8_LOCALE_UNSUPPORTED"; then if test $LOCALE_FR_UTF8 != none; then prepare_locale_ fr $LOCALE_FR_UTF8 - LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR_UTF8 ./pascalprog > pascalprog.out || exit 1 + LANGUAGE= LC_ALL= LC_MESSAGES= LC_CTYPE= LANG=$LOCALE_FR_UTF8 ./pascalprog > pascalprog.out || Exit 1 : ${DIFF=diff} - ${DIFF} pascalprog.oku pascalprog.out || exit 1 + ${DIFF} pascalprog.oku pascalprog.out || Exit 1 fi if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then if test -f /usr/bin/localedef; then @@ -110,7 +110,7 @@ if test -z "$UTF8_LOCALE_UNSUPPORTED"; then else echo "Skipping test: no french locale is supported" fi - exit 77 + Exit 77 fi else if test $LOCALE_FR = none; then @@ -119,8 +119,8 @@ else else echo "Skipping test: no traditional french locale is supported" fi - exit 77 + Exit 77 fi fi -exit 0 +Exit 0 |