3 # Test compendium option.
5 # Translation is available within the compendium (mm-c-3.com)
6 # the old translation file (mm-c-3.in1) contains the same msgid
7 # Why not make use of the translation from the compendium?
10 trap 'rm -fr $tmpfiles' 1 2 3 15
12 tmpfiles
="$tmpfiles mm-c-3.in1 mm-c-3.com mm-c-3.pot"
13 cat <<EOF > mm-c-3.in1
19 msgid "one, two, three"
23 cat <<EOF > mm-c-3.com
25 msgid "one, two, three"
29 cat <<EOF > mm-c-3.pot
35 msgid "one, two, three"
39 tmpfiles
="$tmpfiles mm-c-3.out"
40 : ${MSGMERGE=msgmerge}
41 ${MSGMERGE} -q -C mm-c-3.com mm-c-3.in1 mm-c-3.pot
-o mm-c-3.out
42 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
44 tmpfiles
="$tmpfiles mm-c-3.ok"
45 cat << EOF > mm-c-3.ok
51 msgid "one, two, three"
56 ${DIFF} mm-c-3.ok mm-c-3.out