3 # Test C, C++, PO extractors.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-po-1.in.po xg-po-1.c xg-po-1.cc"
9 cat <<EOF > xg-po-1.in.po
13 msgstr "some text to get fuzzy copied to result"
22 msgstr "Again some text for fuzzy"
29 main (int argc, char *argv[])
31 printf (dcgettext ("hello", "Hello, world."));
36 cat <<EOF > xg-po-1.cc
41 main (int argc, char *argv[])
43 cout << dcgettext ("hello", "Hello world!", LC_MESSAGES) << endl;
48 tmpfiles
="$tmpfiles xg-po-1.po"
49 : ${XGETTEXT=xgettext}
50 ${XGETTEXT} --omit-header -n xg-po-1.
in.po \
51 xg-po-1.c xg-po-1.cc
-d xg-po-1
52 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
54 tmpfiles
="$tmpfiles xg-po-1.ok"
55 cat <<EOF > xg-po-1.ok
59 msgstr "some text to get fuzzy copied to result"
68 msgstr "Again some text for fuzzy"
81 ${DIFF} xg-po-1.ok xg-po-1.po