2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C, C++, PO extractors.
6 cat <<EOF > xg-po-1.in.po
10 msgstr "some text to get fuzzy copied to result"
19 msgstr "Again some text for fuzzy"
26 main (int argc, char *argv[])
28 printf (dcgettext ("hello", "Hello, world."));
33 cat <<EOF > xg-po-1.cc
38 main (int argc, char *argv[])
40 cout << dcgettext ("hello", "Hello world!", LC_MESSAGES) << endl;
45 : ${XGETTEXT=xgettext}
46 ${XGETTEXT} --omit-header -n \
47 -d xg-po-1.tmp xg-po-1.in.po xg-po-1.c xg-po-1.cc || exit 1
48 LC_ALL=C tr -d '\r' < xg-po-1.tmp.po > xg-po-1.po || exit 1
50 cat <<EOF > xg-po-1.ok
54 msgstr "some text to get fuzzy copied to result"
63 msgstr "Again some text for fuzzy"
76 ${DIFF} xg-po-1.ok xg-po-1.po