3
# Test --update: location changed, and xgettext comment added. Both changes
4
# must be reflected in the resulting PO file. With Java .properties syntax.
7
trap 'rm -fr $tmpfiles' 1 2 3 15
9
tmpfiles="$tmpfiles mm-p-2.po"
10
cat <<\EOF > mm-p-2.po
11
#: cogarithmetic.cc:12
15
tmpfiles="$tmpfiles mm-p-2.pot"
16
cat <<EOF > mm-p-2.pot
18
#: cogarithmetic.cc:33
22
tmpfiles="$tmpfiles mm-p-2.po~"
23
: ${MSGMERGE=msgmerge}
24
${MSGMERGE} -q --properties-input --update mm-p-2.po mm-p-2.pot
25
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
27
tmpfiles="$tmpfiles mm-p-2.ok"
28
cat <<\EOF > mm-p-2.ok
30
#: cogarithmetic.cc:33
35
${DIFF} mm-p-2.ok mm-p-2.po