3 # Test C support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-6.in.C"
9 cat <<EOF > xg-c-6.in.C
10 /* This comment will not be extracted. */
13 /* XXX: But this one will. */
17 dcgettext ("foo", "quick", LC_MESSAGES);
20 dgettext ("bar", "!");
23 tmpfiles
="$tmpfiles xg-c-6.po"
24 : ${XGETTEXT=xgettext}
25 ${XGETTEXT} --omit-header --no-location --add-comments=XXX xg-c-6.
in.C \
27 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
29 tmpfiles
="$tmpfiles xg-c-6.ok"
34 #. XXX: But this one will.
47 ${DIFF} xg-c-6.ok xg-c-6.po