1 #! /bin/sh 2 3 # Test compendium option with fuzziness. 4 5 tmpfiles="" 6 trap 'rm -fr $tmpfiles' 1 2 3 15 7 8 tmpfiles="$tmpfiles mm-c-2.in1 mm-c-2.com mm-c-2.pot" 9 cat <<EOF > mm-c-2.in1 10 #: file.c:123 11 msgid "1" 12 msgstr "1x" 13 EOF 14 15 cat <<EOF > mm-c-2.com 16 #: file.c:345 17 msgid "one, two, three" 18 msgstr "1, 2, 3" 19 EOF 20 21 cat <<EOF > mm-c-2.pot 22 #: file.c:123 23 msgid "1" 24 msgstr "" 25 26 #: file.c:345 27 msgid "one, two, three..." 28 msgstr "" 29 EOF 30 31 tmpfiles="$tmpfiles mm-c-2.out" 32 : ${MSGMERGE=msgmerge} 33 ${MSGMERGE} -q -C mm-c-2.com -o mm-c-2.out mm-c-2.in1 mm-c-2.pot 34 test $? = 0 || { rm -fr $tmpfiles; exit 1; } 35 36 tmpfiles="$tmpfiles mm-c-2.ok" 37 cat << EOF > mm-c-2.ok 38 #: file.c:123 39 msgid "1" 40 msgstr "1x" 41 42 #: file.c:345 43 #, fuzzy 44 msgid "one, two, three..." 45 msgstr "1, 2, 3" 46 EOF 47 48 : ${DIFF=diff} 49 ${DIFF} mm-c-2.ok mm-c-2.out 50 result=$? 51 52 rm -fr $tmpfiles 53 54 exit $result 55