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