2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C support: --add-comments option.
6 cat <<EOF > xg-c-6.in.C
7 /* This comment will not be extracted. */
10 /* XXX: But this one will. */
14 dcgettext ("foo", "quick", LC_MESSAGES);
17 dgettext ("bar", "!");
20 : ${XGETTEXT=xgettext}
21 ${XGETTEXT} --omit-header --no-location --add-comments=XXX \
22 -d xg-c-6.tmp xg-c-6.in.C || exit 1
23 LC_ALL=C tr -d '\r' < xg-c-6.tmp.po > xg-c-6.po || exit 1
29 #. XXX: But this one will.
42 ${DIFF} xg-c-6.ok xg-c-6.po