3 # Check for duplicates with different translations
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mf-test8.in1"
9 cat <<EOF > mf-test8.in1
10 # SOME DESCRIPTIVE TITLE.
11 # Copyright (C) YEAR Free Software Foundation, Inc.
12 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
16 "Project-Id-Version: msgfmt test 8\n"
17 "PO-Revision-Date: 1996-04-05 19:47+0200\n"
18 "Last-Translator: ABC DEF <abc@gnu.uucp>\n"
19 "Language-Team: test <test@li.org>\n"
21 "Content-Type: text/plain; charset=ISO-8859-1\n"
22 "Content-Transfer-Encoding: 8bit\n"
26 msgid "3" msgstr "three ha ha"
29 tmpfiles
="$tmpfiles mf-test8.err"
31 LC_MESSAGES
=C LC_ALL
= \
32 ${MSGFMT} --verbose --check mf-test8.in1
-o /dev
/null \
33 2>&1 |
grep -v '^==' > mf-test8.err
35 tmpfiles
="$tmpfiles mf-test8.ok"
36 cat << EOF > mf-test8.ok
37 mf-test8.in1:17: duplicate message definition
38 mf-test8.in1:16: ...this is the location of the first definition
39 msgfmt: found 1 fatal error
43 ${DIFF} mf-test8.ok mf-test8.err