1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test C support: comments. 5 6cat <<EOF > xg-c-comment-1.in.cc 7main(){printf(gettext/*puke*/(/*barf*/"Hello, " "World!" "\n")); } 8EOF 9 10: ${XGETTEXT=xgettext} 11${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-comment-1.tmp xg-c-comment-1.in.cc || Exit 1 12LC_ALL=C tr -d '\r' < xg-c-comment-1.tmp.po > xg-c-comment-1.po || Exit 1 13 14cat <<EOF > xg-c-comment-1.ok 15#. puke 16#. barf 17#, c-format 18msgid "Hello, World!\n" 19msgstr "" 20EOF 21 22: ${DIFF=diff} 23${DIFF} xg-c-comment-1.ok xg-c-comment-1.po 24result=$? 25 26exit $result 27