diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-2')
-rwxr-xr-x | gettext-tools/tests/xgettext-2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gettext-tools/tests/xgettext-2 b/gettext-tools/tests/xgettext-2 index 92d19ba..10ed3b2 100755 --- a/gettext-tools/tests/xgettext-2 +++ b/gettext-tools/tests/xgettext-2 @@ -24,9 +24,11 @@ _ _("") EOF -tmpfiles="$tmpfiles xg-test2.po" +tmpfiles="$tmpfiles xg-test2.tmp.po xg-test2.po" : ${XGETTEXT=xgettext} -${XGETTEXT} -d xg-test2 -k_ --omit-header --no-location xg-test2.in.c +${XGETTEXT} -d xg-test2.tmp -k_ --omit-header --no-location xg-test2.in.c +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +tr -d '\r' < xg-test2.tmp.po > xg-test2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test2.ok" |