3 # Test handling of obsolete/untranslated messages.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-test3.in1 mm-test3.in2"
9 cat <<EOF > mm-test3.in1
16 msgstr "but with translation"
19 msgid "not existing without translation"
23 msgid "still existing"
26 #: should-not-be-here:10
27 #~ msgid "former obsolete"
31 #~ msgid "this stays obsolete"
32 #~ msgstr "even after running msgmerge"
35 # trailing comments should be removed
38 cat <<EOF > mm-test3.in2
43 msgid "still existing"
44 msgstr "here is normally no comment"
52 # trailing comments should be removed, even here
55 tmpfiles
="$tmpfiles mm-test3.out"
56 : ${MSGMERGE=msgmerge}
57 ${MSGMERGE} -q mm-test3.in1 mm-test3.in2
-o mm-test3.out
58 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
60 tmpfiles
="$tmpfiles mm-test3.ok"
61 cat << EOF > mm-test3.ok
63 msgid "still existing"
67 msgid "former obsolete"
68 msgstr "but again useful"
73 #~ msgid "not existing"
74 #~ msgstr "but with translation"
76 #~ msgid "this stays obsolete"
77 #~ msgstr "even after running msgmerge"
81 ${DIFF} mm-test3.ok mm-test3.out