2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C, C++, JavaProperties extractors.
6 cat <<EOF > xg-pr-1.in.properties
9 !extract\ me=some text to get fuzzy copied to result
16 !hello=Again some text for fuzzy
23 main (int argc, char *argv[])
25 printf (dcgettext ("hello", "Hello, world."));
30 cat <<EOF > xg-pr-1.cc
35 main (int argc, char *argv[])
37 cout << dcgettext ("hello", "Hello world!", LC_MESSAGES) << endl;
42 : ${XGETTEXT=xgettext}
43 ${XGETTEXT} --omit-header -n \
44 -d xg-pr-1.tmp xg-pr-1.in.properties xg-pr-1.c xg-pr-1.cc || exit 1
45 LC_ALL=C tr -d '\r' < xg-pr-1.tmp.po > xg-pr-1.po || exit 1
47 cat <<EOF > xg-pr-1.ok
51 msgstr "some text to get fuzzy copied to result"
60 msgstr "Again some text for fuzzy"
73 ${DIFF} xg-pr-1.ok xg-pr-1.po