3 # Even an empty string is extracted, if not overridden by xgettext's
4 # default-constructed header entry.
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles xg-test2.in.c"
10 cat <<EOF > xg-test2.in.c
11 This is a test of the xgettext functionality.
12 /* xgettext:no-c-format */
14 Sometimes keywords can be spread apart
17 And even further on occasion
23 /* also empty strings */
27 tmpfiles
="$tmpfiles xg-test2.po"
28 : ${XGETTEXT=xgettext}
29 ${XGETTEXT} -d xg-test2
-k_ --omit-header --no-location xg-test2.
in.c
30 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
32 tmpfiles
="$tmpfiles xg-test2.ok"
33 cat <<EOF > xg-test2.ok
49 ${DIFF} xg-test2.ok xg-test2.po