Blame gettext-tools/tests/msgcomm-10

Packit Bot 06c835
#! /bin/sh
Packit Bot 06c835
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
Packit Bot 06c835
Packit Bot 06c835
# Test merge of common entries with --more-than=1 and --omit-header.
Packit Bot 06c835
Packit Bot 06c835
cat <<EOF > mcomm-test10.in1
Packit Bot 06c835
msgid ""
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
"Project-Id-Version: GNU one 1.2.3\n"
Packit Bot 06c835
"POT-Creation-Date: 2000-12-11 20:49+0100\n"
Packit Bot 06c835
"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
Packit Bot 06c835
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
Packit Bot 06c835
"Language-Team: German <de@li.org>\n"
Packit Bot 06c835
"MIME-Version: 1.0\n"
Packit Bot 06c835
"Content-Type: text/plain; charset=iso-8859-1\n"
Packit Bot 06c835
"Content-Transfer-Encoding: 8bit\n"
Packit Bot 06c835
Packit Bot 06c835
#: first.c:123
Packit Bot 06c835
msgid "1"
Packit Bot 06c835
msgstr "1x"
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
cat <<EOF > mcomm-test10.in2
Packit Bot 06c835
msgid ""
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
"Project-Id-Version: GNU one 1.2.3\n"
Packit Bot 06c835
"POT-Creation-Date: 2000-12-11 20:49+0100\n"
Packit Bot 06c835
"PO-Revision-Date: 2000-03-18 15:25+01:00\n"
Packit Bot 06c835
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
Packit Bot 06c835
"Language-Team: German <de@li.org>\n"
Packit Bot 06c835
"MIME-Version: 1.0\n"
Packit Bot 06c835
"Content-Type: text/plain; charset=iso-8859-1\n"
Packit Bot 06c835
"Content-Transfer-Encoding: 8bit\n"
Packit Bot 06c835
Packit Bot 06c835
#: hunt.c:759
Packit Bot 06c835
msgid "1"
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
: ${MSGCOMM=msgcomm}
Packit Bot 06c835
${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test10.tmp \
Packit Bot 06c835
    mcomm-test10.in1 mcomm-test10.in2 || exit 1
Packit Bot 06c835
LC_ALL=C tr -d '\r' < mcomm-test10.tmp > mcomm-test10.out || exit 1
Packit Bot 06c835
Packit Bot 06c835
cat << EOF > mcomm-test10.ok
Packit Bot 06c835
msgid "1"
Packit Bot 06c835
msgstr "1x"
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
: ${DIFF=diff}
Packit Bot 06c835
${DIFF} mcomm-test10.ok mcomm-test10.out
Packit Bot 06c835
result=$?
Packit Bot 06c835
Packit Bot 06c835
exit $result