1 #! /bin/sh 2 3 # Verify msgcat of two files, when the header entries have different comments 4 # and different contents. The resulting header entry must be marked fuzzy. 5 6 tmpfiles="" 7 trap 'rm -fr $tmpfiles' 1 2 3 15 8 9 tmpfiles="$tmpfiles mcat-test8.in1 mcat-test8.in2" 10 cat <<\EOF > mcat-test8.in1 11 # German message file for xyz. 12 # Copyright (C) 1999, 2000, 2001 xyz. 13 # Kab Def <ke (at] zzz.uucp>, 2000. 14 # Def Kab <dk (at] zzz.uucp>, 2001. 15 # 16 msgid "" 17 msgstr "" 18 "Project-Id-Version: xyz\n" 19 "POT-Creation-Date: 2001-11-11 12:51:34+0200\n" 20 "PO-Revision-Date: 2001-11-11 13:02+02:00\n" 21 "Last-Translator: Kab Def <ke (at] zzz.uucp>\n" 22 "Language-Team: German <i18n (at] zzz.uucp>\n" 23 "MIME-Version: 1.0\n" 24 "Content-Type: text/plain; charset=ISO-8859-1\n" 25 "Content-Transfer-Encoding: 8bit\n" 26 27 #. Help text (HTML-like) START 28 #: clients/inst_ask_config.ycp:119 29 msgid "" 30 "Congratulations!" 31 msgstr "" 32 "Glckwunsch!" 33 EOF 34 35 cat <<\EOF > mcat-test8.in2 36 # German message file for xyz. 37 # Copyright (C) 1999, 2000, 2001 xyz. 38 # Kab Def <ke (at] zzz.uucp>, 2000. 39 # 40 msgid "" 41 msgstr "" 42 "Project-Id-Version: xyz\n" 43 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n" 44 "PO-Revision-Date: 2001-04-24 13:02+02:00\n" 45 "Last-Translator: Kab Def <ke (at] zzz.uucp>\n" 46 "Language-Team: German <i18n (at] zzz.uucp>\n" 47 "MIME-Version: 1.0\n" 48 "Content-Type: text/plain; charset=ISO-8859-1\n" 49 "Content-Transfer-Encoding: 8bit\n" 50 51 #. Help text (HTML-like) START 52 #: clients/inst_ask_config.ycp:119 53 msgid "" 54 "Congratulations!" 55 msgstr "" 56 "Glckwunsch!" 57 EOF 58 59 tmpfiles="$tmpfiles mcat-test8.out" 60 rm -f mcat-test8.out 61 62 : ${MSGCAT=msgcat} 63 ${MSGCAT} --more-than=0 -o mcat-test8.out \ 64 mcat-test8.in1 mcat-test8.in2 65 test $? = 0 || { rm -fr $tmpfiles; exit 1; } 66 67 tmpfiles="$tmpfiles mcat-test8.ok" 68 cat <<\EOF > mcat-test8.ok 69 # #-#-#-#-# mcat-test8.in1 (xyz) #-#-#-#-# 70 # German message file for xyz. 71 # Copyright (C) 1999, 2000, 2001 xyz. 72 # Kab Def <ke (at] zzz.uucp>, 2000. 73 # Def Kab <dk (at] zzz.uucp>, 2001. 74 # 75 # #-#-#-#-# mcat-test8.in2 (xyz) #-#-#-#-# 76 # German message file for xyz. 77 # Copyright (C) 1999, 2000, 2001 xyz. 78 # Kab Def <ke (at] zzz.uucp>, 2000. 79 # 80 #, fuzzy 81 msgid "" 82 msgstr "" 83 "#-#-#-#-# mcat-test8.in1 (xyz) #-#-#-#-#\n" 84 "Project-Id-Version: xyz\n" 85 "POT-Creation-Date: 2001-11-11 12:51:34+0200\n" 86 "PO-Revision-Date: 2001-11-11 13:02+02:00\n" 87 "Last-Translator: Kab Def <ke (at] zzz.uucp>\n" 88 "Language-Team: German <i18n (at] zzz.uucp>\n" 89 "MIME-Version: 1.0\n" 90 "Content-Type: text/plain; charset=ISO-8859-1\n" 91 "Content-Transfer-Encoding: 8bit\n" 92 "#-#-#-#-# mcat-test8.in2 (xyz) #-#-#-#-#\n" 93 "Project-Id-Version: xyz\n" 94 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n" 95 "PO-Revision-Date: 2001-04-24 13:02+02:00\n" 96 "Last-Translator: Kab Def <ke (at] zzz.uucp>\n" 97 "Language-Team: German <i18n (at] zzz.uucp>\n" 98 "MIME-Version: 1.0\n" 99 "Content-Type: text/plain; charset=ISO-8859-1\n" 100 "Content-Transfer-Encoding: 8bit\n" 101 102 #. Help text (HTML-like) START 103 #: clients/inst_ask_config.ycp:119 104 msgid "Congratulations!" 105 msgstr "Glckwunsch!" 106 EOF 107 108 : ${DIFF=diff} 109 ${DIFF} mcat-test8.ok mcat-test8.out 110 result=$? 111 112 rm -fr $tmpfiles 113 114 exit $result 115