2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test compendium option.
6 # Translation is available within the compendium (mm-c-3.com)
7 # the old translation file (mm-c-3.in1) contains the same msgid
8 # Why not make use of the translation from the compendium?
10 cat <<EOF > mm-c-3.in1
16 msgid "one, two, three"
20 cat <<EOF > mm-c-3.com
22 msgid "one, two, three"
26 cat <<EOF > mm-c-3.pot
32 msgid "one, two, three"
36 : ${MSGMERGE=msgmerge}
37 ${MSGMERGE} -q -C mm-c-3.com -o mm-c-3.tmp mm-c-3.in1 mm-c-3.pot || exit 1
38 LC_ALL=C tr -d '\r' < mm-c-3.tmp > mm-c-3.out || exit 1
40 cat << EOF > mm-c-3.ok
46 msgid "one, two, three"
51 ${DIFF} mm-c-3.ok mm-c-3.out