From: Bruno Haible Date: Tue, 15 May 2007 01:06:33 +0000 (+0000) Subject: Convert CR/LF to LF. X-Git-Tag: v0.17~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88334e3aceefb6fcfb90266924b8b2b5b70ed040;p=thirdparty%2Fgettext.git Convert CR/LF to LF. --- diff --git a/gettext-tools/tests/plural-1 b/gettext-tools/tests/plural-1 index 1fc34a5f7..7dcedb915 100755 --- a/gettext-tools/tests/plural-1 +++ b/gettext-tools/tests/plural-1 @@ -49,15 +49,18 @@ test -d fr/LC_MESSAGES || mkdir fr/LC_MESSAGES : ${MSGFMT=msgfmt} ${MSGFMT} -o fr/LC_MESSAGES/cake.mo fr.po -tmpfiles="$tmpfiles fr.po.tmp" +tmpfiles="$tmpfiles fr.po.tmp fr.po.un" : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o fr.po.tmp fr/LC_MESSAGES/cake.mo +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +tr -d '\r' < fr.po.tmp > fr.po.un +test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles fr.po.strip" sed 1,2d < fr.po > fr.po.strip : ${DIFF=diff} -${DIFF} fr.po.strip fr.po.tmp || exit 1 +${DIFF} fr.po.strip fr.po.un || exit 1 tmpfiles="$tmpfiles cake.ok cake.out" : ${DIFF=diff}