1#! /bin/sh 2 3# Verify that msgcat doesn't introduce alternative syntax if all translations 4# have the same msgstr. 5 6tmpfiles="" 7trap 'rm -fr $tmpfiles' 1 2 3 15 8 9tmpfiles="$tmpfiles mcat-test1.in1 mcat-test1.in2" 10cat <<EOF > mcat-test1.in1 11msgid "" 12msgstr "" 13"Project-Id-Version: GNU one 1.2.3\n" 14"POT-Creation-Date: 2000-12-11 20:49+0100\n" 15"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 16"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 17"Language-Team: German <de@li.org>\n" 18"MIME-Version: 1.0\n" 19"Content-Type: text/plain; charset=iso-8859-1\n" 20"Content-Transfer-Encoding: 8bit\n" 21 22#: first.c:123 23msgid "1" 24msgstr "eins" 25EOF 26 27cat <<EOF > mcat-test1.in2 28msgid "" 29msgstr "" 30"Project-Id-Version: GNU one 1.2.3\n" 31"POT-Creation-Date: 2000-12-11 20:49+0100\n" 32"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 33"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 34"Language-Team: German <de@li.org>\n" 35"MIME-Version: 1.0\n" 36"Content-Type: text/plain; charset=iso-8859-1\n" 37"Content-Transfer-Encoding: 8bit\n" 38 39#: hunt.c:759 40msgid "1" 41msgstr "eins" 42EOF 43 44tmpfiles="$tmpfiles mcat-test1.out" 45: ${MSGCAT=msgcat} 46${MSGCAT} mcat-test1.in1 mcat-test1.in2 -o mcat-test1.out 47test $? = 0 || { rm -fr $tmpfiles; exit 1; } 48 49tmpfiles="$tmpfiles mcat-test1.ok" 50cat << EOF > mcat-test1.ok 51msgid "" 52msgstr "" 53"Project-Id-Version: GNU one 1.2.3\n" 54"POT-Creation-Date: 2000-12-11 20:49+0100\n" 55"PO-Revision-Date: 2000-03-18 15:25+01:00\n" 56"Last-Translator: Karl Eichwalder <ke@suse.de>\n" 57"Language-Team: German <de@li.org>\n" 58"MIME-Version: 1.0\n" 59"Content-Type: text/plain; charset=iso-8859-1\n" 60"Content-Transfer-Encoding: 8bit\n" 61 62#: first.c:123 hunt.c:759 63msgid "1" 64msgstr "eins" 65EOF 66 67: ${DIFF=diff} 68${DIFF} mcat-test1.ok mcat-test1.out 69result=$? 70 71rm -fr $tmpfiles 72 73exit $result 74