2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --update: location changed, and xgettext comment added. Both changes
5 # must be reflected in the resulting PO file. With Java .properties syntax.
12 cat <<EOF > mm-p-2.pot
14 #: cogarithmetic.cc:33
18 : ${MSGMERGE=msgmerge}
19 ${MSGMERGE} -q --properties-input --update mm-p-2.po mm-p-2.pot || exit 1
20 mv mm-p-2.po mm-p-2.tmp || { exit 1; }
21 LC_ALL=C tr -d '\r' < mm-p-2.tmp > mm-p-2.po || exit 1
23 cat <<\EOF > mm-p-2.ok
25 #: cogarithmetic.cc:33
30 ${DIFF} mm-p-2.ok mm-p-2.po