2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test of comment extraction in the case of duplicated msgids.
6 cat <<\EOF > xg-test7.c
8 /* xgettext: c-format */
12 /* xgettext: lisp-format */
16 /* xgettext: python-format */
20 : ${XGETTEXT=xgettext}
21 ${XGETTEXT} --omit-header --add-comments -d xg-test7.tmp xg-test7.c || exit 1
22 LC_ALL=C tr -d '\r' < xg-test7.tmp.po > xg-test7.po || exit 1
24 cat <<\EOF > xg-test7.ok
27 #: xg-test7.c:3 xg-test7.c:7 xg-test7.c:11
28 #, c-format, python-format, lisp-format
34 ${DIFF} xg-test7.ok xg-test7.po