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