2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Check for duplicates with different translations
6 cat <<EOF > mf-test8.in1
7 # SOME DESCRIPTIVE TITLE.
8 # Copyright (C) YEAR Free Software Foundation, Inc.
9 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
13 "Project-Id-Version: msgfmt test 8\n"
14 "PO-Revision-Date: 1996-04-05 19:47+0200\n"
15 "Last-Translator: ABC DEF <abc@gnu.uucp>\n"
16 "Language-Team: test <test@li.org>\n"
18 "Content-Type: text/plain; charset=ISO-8859-1\n"
19 "Content-Transfer-Encoding: 8bit\n"
23 msgid "3" msgstr "three ha ha"
27 LC_MESSAGES=C LC_ALL= \
28 ${MSGFMT} --verbose --check mf-test8.in1 -o /dev/null \
29 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test8.err
31 cat << EOF > mf-test8.ok
32 mf-test8.in1:17: duplicate message definition...
33 mf-test8.in1:16: ...this is the location of the first definition
34 msgfmt: found 1 fatal error
38 ${DIFF} mf-test8.ok mf-test8.err