1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test compendium option. Use it there was no "old" PO file at all 5# (merely use /dev/null). 6 7 8cat <<\EOF > mm-c-4.com 9msgid "" 10msgstr "" 11"Content-Type: text/plain; charset=iso-8859-1\n" 12"Content-Transfer-Encoding: 8bit\n" 13 14#: file.c:345 15msgid "5" 16msgstr "f�nf" 17EOF 18 19cat <<EOF > mm-c-4.pot 20#: file.c:123 21msgid "1" 22msgstr "" 23 24#: file.c:345 25msgid "5" 26msgstr "" 27EOF 28 29: ${MSGMERGE=msgmerge} 30${MSGMERGE} -q --compendium mm-c-4.com -o mm-c-4.tmp /dev/null mm-c-4.pot || Exit 1 31LC_ALL=C tr -d '\r' < mm-c-4.tmp > mm-c-4.out || Exit 1 32 33cat << \EOF > mm-c-4.ok 34msgid "" 35msgstr "" 36"Content-Type: text/plain; charset=iso-8859-1\n" 37"Content-Transfer-Encoding: 8bit\n" 38 39#: file.c:123 40msgid "1" 41msgstr "" 42 43#: file.c:345 44msgid "5" 45msgstr "f�nf" 46EOF 47 48: ${DIFF=diff} 49${DIFF} mm-c-4.ok mm-c-4.out 50result=$? 51 52exit $result 53