/
niceSOFT
/
gettext
Обзор
Документация
Войти
/
niceSOFT
/
gettext
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
gettext-tools/tests/msgcat-5
88 строк
2 KB
Daiki Ueno
tests: Use Exit instead of exit if init.sh is used
08 июн 2016, 09:28
08 июн 2016, 09:28
59d9b55
Код
Авторство
О чём код?
#! /bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test handling of input files with different translations: # try --use-first cat <<\EOF > mcat-test5.in1 # German message file for xyz. # Copyright (C) 1999, 2000, 2001 xyz. # Kab Def <ke@zzz.uucp>, 2000. # msgid "" msgstr "" "Project-Id-Version: xyz\n" "POT-Creation-Date: 2001-04-24 12:51:34+0200\n" "PO-Revision-Date: 2001-04-24 13:02+02:00\n" "Last-Translator: Kab Def <ke@zzz.uucp>\n" "Language-Team: German <i18n@zzz.uucp>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Help text (HTML-like) START #: clients/inst_ask_config.ycp:119 msgid "" "Congratulations!" msgstr "" "Gl�ckwunsch!" EOF cat <<\EOF > mcat-test5.in2 # German message file for xyz. # Copyright (C) 1999, 2000, 2001 xyz. # Kab Def <ke@zzz.uucp>, 2000. # msgid "" msgstr "" "Project-Id-Version: xyz\n" "POT-Creation-Date: 2001-04-24 12:51:34+0200\n" "PO-Revision-Date: 2001-04-24 13:02+02:00\n" "Last-Translator: Kab Def <ke@zzz.uucp>\n" "Language-Team: German <i18n@zzz.uucp>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Help text (HTML-like) START #: clients/inst_ask_config.ycp:119 msgid "" "Congratulations!" msgstr "" "Herzlichen Gl�ckwunsch!" EOF rm -f mcat-test5.tmp : ${MSGCAT=msgcat} ${MSGCAT} --use-first --more-than=0 -o mcat-test5.tmp \ mcat-test5.in1 mcat-test5.in2 || Exit 1 LC_ALL=C tr -d '\r' < mcat-test5.tmp > mcat-test5.out || Exit 1 cat << \EOF > mcat-test5.ok # German message file for xyz. # Copyright (C) 1999, 2000, 2001 xyz. # Kab Def <ke@zzz.uucp>, 2000. # msgid "" msgstr "" "Project-Id-Version: xyz\n" "POT-Creation-Date: 2001-04-24 12:51:34+0200\n" "PO-Revision-Date: 2001-04-24 13:02+02:00\n" "Last-Translator: Kab Def <ke@zzz.uucp>\n" "Language-Team: German <i18n@zzz.uucp>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #. Help text (HTML-like) START #: clients/inst_ask_config.ycp:119 msgid "Congratulations!" msgstr "Gl�ckwunsch!" EOF : ${DIFF=diff} ${DIFF} mcat-test5.ok mcat-test5.out result=$? exit $result