1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Verify that msgcat complains when the same msgid occurs with and without 5# msgid_plural. 6 7cat <<\EOF > mcat-test21.in1 8msgid "" 9msgstr "" 10"Content-Type: text/plain; charset=UTF-8\n" 11"Content-Transfer-Encoding: 8bit\n" 12 13msgid "File" 14msgstr "Soumettre" 15EOF 16 17cat <<\EOF > mcat-test21.in2 18msgid "" 19msgstr "" 20"Content-Type: text/plain; charset=UTF-8\n" 21"Content-Transfer-Encoding: 8bit\n" 22"Plural-Forms: nplurals=2; plural=(n > 1);\n" 23 24msgid "File" 25msgid_plural "Files" 26msgstr[0] "fichier" 27msgstr[1] "fichiers" 28EOF 29 30rm -f mcat-test21.out1 31: ${MSGCAT=msgcat} 32${MSGCAT} -o mcat-test21.out1 mcat-test21.in1 mcat-test21.in2 2>/dev/null 33test $? = 1 || { Exit 1; } 34 35rm -f mcat-test21.out2 36: ${MSGCAT=msgcat} 37${MSGCAT} -o mcat-test21.out2 mcat-test21.in2 mcat-test21.in1 2>/dev/null 38test $? = 1 || { Exit 1; } 39 40Exit 0 41