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