1#!/bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test of multi-line comment extraction. 5 6cat <<\EOF > xg-test11.c 7/* TRANSLATORS: this 8 is the first msgid 9 */ 10gettext ("abc"); 11 12/* 13 * TRANSLATORS: this 14 * is the second msgid 15 */ 16gettext ("def"); 17EOF 18 19: ${XGETTEXT=xgettext} 20${XGETTEXT} --no-location --omit-header --add-comments=TRANSLATORS: -d xg-test11.tmp xg-test11.c || Exit 1 21LC_ALL=C tr -d '\r' < xg-test11.tmp.po > xg-test11.po || Exit 1 22 23cat <<\EOF > xg-test11.ok 24#. TRANSLATORS: this 25#. is the first msgid 26#. 27msgid "abc" 28msgstr "" 29 30#. TRANSLATORS: this 31#. is the second msgid 32#. 33msgid "def" 34msgstr "" 35EOF 36 37: ${DIFF=diff} 38${DIFF} xg-test11.ok xg-test11.po 39result=$? 40 41exit $result 42