summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/plural-1
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-05-15 01:06:33 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:49 +0200
commit88334e3aceefb6fcfb90266924b8b2b5b70ed040 (patch)
tree68c79f50485f14b41e7d4694d28995f2407c7a2d /gettext-tools/tests/plural-1
parent242e87d800b33e3e53e11f3ebb70501c23f6169e (diff)
downloadexternal_gettext-88334e3aceefb6fcfb90266924b8b2b5b70ed040.zip
external_gettext-88334e3aceefb6fcfb90266924b8b2b5b70ed040.tar.gz
external_gettext-88334e3aceefb6fcfb90266924b8b2b5b70ed040.tar.bz2
Convert CR/LF to LF.
Diffstat (limited to 'gettext-tools/tests/plural-1')
-rwxr-xr-xgettext-tools/tests/plural-17
1 files changed, 5 insertions, 2 deletions
diff --git a/gettext-tools/tests/plural-1 b/gettext-tools/tests/plural-1
index 1fc34a5..7dcedb9 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}