3 # Test compendium option. Use it there was no "old" PO file at all
4 # (merely use /dev/null).
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles mm-c-4.com mm-c-4.pot"
11 cat <<\EOF
> mm-c-4.com
14 "Content-Type: text/plain; charset=iso-8859-1\n"
15 "Content-Transfer-Encoding: 8bit\n"
22 cat <<EOF > mm-c-4.pot
32 tmpfiles
="$tmpfiles mm-c-4.out"
33 : ${MSGMERGE=msgmerge}
34 ${MSGMERGE} -q --compendium mm-c-4.com
/dev
/null mm-c-4.pot
-o mm-c-4.out
35 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
37 tmpfiles
="$tmpfiles mm-c-4.ok"
38 cat << \EOF
> mm-c-4.ok
41 "Content-Type: text/plain; charset=iso-8859-1\n"
42 "Content-Transfer-Encoding: 8bit\n"
54 ${DIFF} mm-c-4.ok mm-c-4.out