#! /bin/sh
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
tmpfiles="$tmpfiles mcat-test6.in1 mcat-test6.in2"
cat <<\EOF > mcat-test6.in1
msgid ""
msgstr ""
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
"PO-Revision-Date: 2001-04-24 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
msgid ""
"Congratulations!"
msgstr ""
"Glückwunsch!"
EOF
cat <<\EOF > mcat-test6.in2
msgid ""
msgstr ""
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
"PO-Revision-Date: 2001-04-24 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
msgid ""
"Congratulations!"
msgstr ""
"Herzlichen Glückwunsch!"
EOF
tmpfiles="$tmpfiles mcat-test6.out"
rm -f mcat-test6.out
: ${MSGCAT=msgcat}
${MSGCAT} --more-than=0 -o mcat-test6.out \
mcat-test6.in1 mcat-test6.in2
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
tmpfiles="$tmpfiles mcat-test6.ok"
cat << \EOF > mcat-test6.ok
msgid ""
msgstr ""
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
"PO-Revision-Date: 2001-04-24 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "Congratulations!"
msgstr ""
"#-#-#-#-# mcat-test6.in1 (xyz) #-#-#-#-#\n"
"Glückwunsch!\n"
"#-#-#-#-# mcat-test6.in2 (xyz) #-#-#-#-#\n"
"Herzlichen Glückwunsch!"
EOF
: ${DIFF=diff}
${DIFF} mcat-test6.ok mcat-test6.out
result=$?
rm -fr $tmpfiles
exit $result