]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Convert CR/LF to LF.
authorBruno Haible <bruno@clisp.org>
Tue, 15 May 2007 01:06:33 +0000 (01:06 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:49 +0000 (12:14 +0200)
gettext-tools/tests/plural-1

index 1fc34a5f72e4069224d48ec4c76b0b49ed5a5714..7dcedb915927a81badb016408763b3349ee56c0c 100755 (executable)
@@ -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}