#! /bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles mcomm-test22.in1 mcomm-test22.in2"
cat <<\EOF > mcomm-test22.in1
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext 0.10.36\n"
"POT-Creation-Date: 2001-05-23 23:03+0200\n"
"PO-Revision-Date: 2001-04-11 06:44+02:00\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid ""
"Copyright (C) %s Free Software Foundation, Inc.\n"
"This is free software; see the source for copying conditions. There is NO\n"
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
msgstr ""
"Copyright © %s Free Software Foundation, Inc.\n"
"Dies ist freie Software; in den Quellen befindet sich die Lizenzbedingung.\n"
"Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder\n"
"die VERWENDBARKEIT ZU EINEN ANGEGEBENEN ZWECK.\n"
EOF
cat <<\EOF > mcomm-test22.in2
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext 0.10.36\n"
"POT-Creation-Date: 2001-05-23 23:03+0200\n"
"PO-Revision-Date: 2001-04-11 06:44+02:00\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "memory exhausted"
msgstr "virtueller Speicher erschöpft"
EOF
tmpfiles="$tmpfiles mcomm-test22.out"
rm -f mcomm-test22.out
: ${MSGCOMM=msgcomm}
${MSGCOMM} --less-than=2 -o mcomm-test22.out \
mcomm-test22.in1 mcomm-test22.in2
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
tmpfiles="$tmpfiles mcomm-test22.ok"
cat << \EOF > mcomm-test22.ok
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext 0.10.36\n"
"POT-Creation-Date: 2001-05-23 23:03+0200\n"
"PO-Revision-Date: 2001-04-11 06:44+02:00\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid ""
"Copyright (C) %s Free Software Foundation, Inc.\n"
"This is free software; see the source for copying conditions. There is NO\n"
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
msgstr ""
"Copyright © %s Free Software Foundation, Inc.\n"
"Dies ist freie Software; in den Quellen befindet sich die Lizenzbedingung.\n"
"Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder\n"
"die VERWENDBARKEIT ZU EINEN ANGEGEBENEN ZWECK.\n"
msgid "memory exhausted"
msgstr "virtueller Speicher erschöpft"
EOF
: ${DIFF=diff}
${DIFF} mcomm-test22.ok mcomm-test22.out
result=$?
rm -fr $tmpfiles
exit $result