3 # Test of comment extraction in the case of duplicated msgids.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-test7.c"
9 cat <<\EOF
> xg-test7.c
11 /* xgettext
: c-format
*/
15 /* xgettext
: lisp-format
*/
19 /* xgettext
: python-format
*/
23 tmpfiles
="$tmpfiles xg-test7.po"
24 : ${XGETTEXT=xgettext}
25 ${XGETTEXT} --omit-header --add-comments -d xg-test7 xg-test7.c
26 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
28 tmpfiles
="$tmpfiles xg-test7.ok"
29 cat <<\EOF
> xg-test7.ok
32 #: xg-test7.c:3 xg-test7.c:7 xg-test7.c:11
33 #, c-format, python-format, lisp-format
39 ${DIFF} xg-test7.ok xg-test7.po