1#! /bin/sh 2 3# Test msgconv on a PO file with previous msgids. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mco-test6.po" 9cat <<\EOF > mco-test6.po 10msgid "" 11msgstr "" 12"Report-Msgid-Bugs-To: \n" 13"Content-Type: text/plain; charset=UTF-8\n" 14"Content-Transfer-Encoding: 8bit\n" 15 16#, fuzzy 17#| msgid "�� Frobby Inc." 18msgid "(C) Frobby Inc." 19msgstr "(C) Dingsbums GmbH" 20 21#, fuzzy 22#| msgid "full 360��" 23msgid "full turn" 24msgstr "Volle 360 Grad" 25EOF 26 27tmpfiles="$tmpfiles mco-test6.tmp mco-test6.out" 28: ${MSGCONV=msgconv} 29${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.tmp mco-test6.po 30test $? = 0 || { rm -fr $tmpfiles; exit 1; } 31tr -d '\r' < mco-test6.tmp > mco-test6.out 32test $? = 0 || { rm -fr $tmpfiles; exit 1; } 33 34tmpfiles="$tmpfiles mco-test6.ok" 35cat <<\EOF > mco-test6.ok 36msgid "" 37msgstr "" 38"Report-Msgid-Bugs-To: \n" 39"Content-Type: text/plain; charset=ISO-8859-1\n" 40"Content-Transfer-Encoding: 8bit\n" 41 42#, fuzzy 43#| msgid "� Frobby Inc." 44msgid "(C) Frobby Inc." 45msgstr "(C) Dingsbums GmbH" 46 47#, fuzzy 48#| msgid "full 360�" 49msgid "full turn" 50msgstr "Volle 360 Grad" 51EOF 52 53: ${DIFF=diff} 54${DIFF} mco-test6.ok mco-test6.out 55result=$? 56 57rm -fr $tmpfiles 58 59exit $result 60