]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Convert CR/LF to LF.
authorBruno Haible <bruno@clisp.org>
Mon, 14 May 2007 23:06:31 +0000 (23:06 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:48 +0000 (12:14 +0200)
201 files changed:
gettext-tools/tests/ChangeLog
gettext-tools/tests/format-c-3
gettext-tools/tests/format-c-4
gettext-tools/tests/format-c-5
gettext-tools/tests/gettext-1
gettext-tools/tests/lang-bash
gettext-tools/tests/lang-c
gettext-tools/tests/lang-c++
gettext-tools/tests/lang-clisp
gettext-tools/tests/lang-csharp
gettext-tools/tests/lang-elisp
gettext-tools/tests/lang-gawk
gettext-tools/tests/lang-guile
gettext-tools/tests/lang-java
gettext-tools/tests/lang-librep
gettext-tools/tests/lang-objc
gettext-tools/tests/lang-pascal
gettext-tools/tests/lang-perl-1
gettext-tools/tests/lang-perl-2
gettext-tools/tests/lang-php
gettext-tools/tests/lang-po
gettext-tools/tests/lang-python-1
gettext-tools/tests/lang-python-2
gettext-tools/tests/lang-rst
gettext-tools/tests/lang-sh
gettext-tools/tests/lang-smalltalk
gettext-tools/tests/lang-tcl
gettext-tools/tests/lang-ycp
gettext-tools/tests/msgattrib-1
gettext-tools/tests/msgattrib-10
gettext-tools/tests/msgattrib-11
gettext-tools/tests/msgattrib-12
gettext-tools/tests/msgattrib-13
gettext-tools/tests/msgattrib-14
gettext-tools/tests/msgattrib-15
gettext-tools/tests/msgattrib-16
gettext-tools/tests/msgattrib-17
gettext-tools/tests/msgattrib-2
gettext-tools/tests/msgattrib-3
gettext-tools/tests/msgattrib-4
gettext-tools/tests/msgattrib-5
gettext-tools/tests/msgattrib-6
gettext-tools/tests/msgattrib-7
gettext-tools/tests/msgattrib-8
gettext-tools/tests/msgattrib-9
gettext-tools/tests/msgattrib-properties-1
gettext-tools/tests/msgcat-1
gettext-tools/tests/msgcat-10
gettext-tools/tests/msgcat-11
gettext-tools/tests/msgcat-13
gettext-tools/tests/msgcat-15
gettext-tools/tests/msgcat-16
gettext-tools/tests/msgcat-2
gettext-tools/tests/msgcat-3
gettext-tools/tests/msgcat-4
gettext-tools/tests/msgcat-5
gettext-tools/tests/msgcat-6
gettext-tools/tests/msgcat-7
gettext-tools/tests/msgcat-8
gettext-tools/tests/msgcat-9
gettext-tools/tests/msgcat-properties-1
gettext-tools/tests/msgcat-stringtable-1
gettext-tools/tests/msgcmp-2
gettext-tools/tests/msgcmp-3
gettext-tools/tests/msgcomm-1
gettext-tools/tests/msgcomm-10
gettext-tools/tests/msgcomm-11
gettext-tools/tests/msgcomm-12
gettext-tools/tests/msgcomm-13
gettext-tools/tests/msgcomm-14
gettext-tools/tests/msgcomm-16
gettext-tools/tests/msgcomm-17
gettext-tools/tests/msgcomm-18
gettext-tools/tests/msgcomm-19
gettext-tools/tests/msgcomm-2
gettext-tools/tests/msgcomm-20
gettext-tools/tests/msgcomm-21
gettext-tools/tests/msgcomm-22
gettext-tools/tests/msgcomm-23
gettext-tools/tests/msgcomm-24
gettext-tools/tests/msgcomm-25
gettext-tools/tests/msgcomm-26
gettext-tools/tests/msgcomm-3
gettext-tools/tests/msgcomm-4
gettext-tools/tests/msgcomm-5
gettext-tools/tests/msgcomm-6
gettext-tools/tests/msgcomm-7
gettext-tools/tests/msgcomm-8
gettext-tools/tests/msgcomm-9
gettext-tools/tests/msgconv-5
gettext-tools/tests/msgconv-6
gettext-tools/tests/msgen-1
gettext-tools/tests/msgen-2
gettext-tools/tests/msgen-3
gettext-tools/tests/msgfilter-sr-latin-1
gettext-tools/tests/msgfmt-1
gettext-tools/tests/msgfmt-10
gettext-tools/tests/msgfmt-12
gettext-tools/tests/msgfmt-14
gettext-tools/tests/msgfmt-16
gettext-tools/tests/msgfmt-5
gettext-tools/tests/msgfmt-7
gettext-tools/tests/msgfmt-8
gettext-tools/tests/msgfmt-9
gettext-tools/tests/msgfmt-properties-1
gettext-tools/tests/msggrep-1
gettext-tools/tests/msggrep-2
gettext-tools/tests/msggrep-3
gettext-tools/tests/msggrep-4
gettext-tools/tests/msggrep-5
gettext-tools/tests/msggrep-6
gettext-tools/tests/msggrep-7
gettext-tools/tests/msggrep-8
gettext-tools/tests/msgmerge-1
gettext-tools/tests/msgmerge-10
gettext-tools/tests/msgmerge-11
gettext-tools/tests/msgmerge-12
gettext-tools/tests/msgmerge-13
gettext-tools/tests/msgmerge-14
gettext-tools/tests/msgmerge-15
gettext-tools/tests/msgmerge-16
gettext-tools/tests/msgmerge-17
gettext-tools/tests/msgmerge-18
gettext-tools/tests/msgmerge-19
gettext-tools/tests/msgmerge-20
gettext-tools/tests/msgmerge-3
gettext-tools/tests/msgmerge-4
gettext-tools/tests/msgmerge-5
gettext-tools/tests/msgmerge-6
gettext-tools/tests/msgmerge-7
gettext-tools/tests/msgmerge-8
gettext-tools/tests/msgmerge-compendium-1
gettext-tools/tests/msgmerge-compendium-2
gettext-tools/tests/msgmerge-compendium-3
gettext-tools/tests/msgmerge-compendium-4
gettext-tools/tests/msgmerge-compendium-5
gettext-tools/tests/msgmerge-compendium-6
gettext-tools/tests/msgmerge-properties-1
gettext-tools/tests/msgmerge-properties-2
gettext-tools/tests/msgmerge-update-2
gettext-tools/tests/msgunfmt-1
gettext-tools/tests/msgunfmt-2
gettext-tools/tests/msgunfmt-properties-1
gettext-tools/tests/msguniq-1
gettext-tools/tests/msguniq-2
gettext-tools/tests/msguniq-3
gettext-tools/tests/msguniq-5
gettext-tools/tests/msguniq-6
gettext-tools/tests/plural-1
gettext-tools/tests/xgettext-2
gettext-tools/tests/xgettext-6
gettext-tools/tests/xgettext-7
gettext-tools/tests/xgettext-9
gettext-tools/tests/xgettext-awk-1
gettext-tools/tests/xgettext-c-1
gettext-tools/tests/xgettext-c-10
gettext-tools/tests/xgettext-c-11
gettext-tools/tests/xgettext-c-12
gettext-tools/tests/xgettext-c-13
gettext-tools/tests/xgettext-c-14
gettext-tools/tests/xgettext-c-15
gettext-tools/tests/xgettext-c-2
gettext-tools/tests/xgettext-c-3
gettext-tools/tests/xgettext-c-4
gettext-tools/tests/xgettext-c-5
gettext-tools/tests/xgettext-c-6
gettext-tools/tests/xgettext-c-7
gettext-tools/tests/xgettext-c-8
gettext-tools/tests/xgettext-c-9
gettext-tools/tests/xgettext-csharp-1
gettext-tools/tests/xgettext-csharp-4
gettext-tools/tests/xgettext-csharp-5
gettext-tools/tests/xgettext-elisp-1
gettext-tools/tests/xgettext-java-1
gettext-tools/tests/xgettext-java-3
gettext-tools/tests/xgettext-java-4
gettext-tools/tests/xgettext-java-5
gettext-tools/tests/xgettext-librep-1
gettext-tools/tests/xgettext-lisp-1
gettext-tools/tests/xgettext-objc-1
gettext-tools/tests/xgettext-objc-2
gettext-tools/tests/xgettext-perl-1
gettext-tools/tests/xgettext-perl-4
gettext-tools/tests/xgettext-perl-5
gettext-tools/tests/xgettext-perl-6
gettext-tools/tests/xgettext-php-1
gettext-tools/tests/xgettext-php-2
gettext-tools/tests/xgettext-po-1
gettext-tools/tests/xgettext-properties-1
gettext-tools/tests/xgettext-python-2
gettext-tools/tests/xgettext-scheme-1
gettext-tools/tests/xgettext-sh-1
gettext-tools/tests/xgettext-sh-2
gettext-tools/tests/xgettext-sh-3
gettext-tools/tests/xgettext-sh-4
gettext-tools/tests/xgettext-sh-5
gettext-tools/tests/xgettext-smalltalk-1
gettext-tools/tests/xgettext-tcl-2
gettext-tools/tests/xgettext-ycp-1
gettext-tools/tests/xgettext-ycp-2
gettext-tools/tests/xgettext-ycp-3

index b3a2f1bab93d26a2e84b235f75de84a92544fc02..5680b2718ec661b6d9542350428ea95520fc4293 100644 (file)
@@ -1,3 +1,207 @@
+2007-05-14  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test suite failures on mingw.
+       * gettext-1: Convert CR/LF to LF before applying DIFF.
+       * msgattrib-1: Likewise.
+       * msgattrib-2: Likewise.
+       * msgattrib-3: Likewise.
+       * msgattrib-4: Likewise.
+       * msgattrib-5: Likewise.
+       * msgattrib-6: Likewise.
+       * msgattrib-7: Likewise.
+       * msgattrib-8: Likewise.
+       * msgattrib-9: Likewise.
+       * msgattrib-10: Likewise.
+       * msgattrib-11: Likewise.
+       * msgattrib-12: Likewise.
+       * msgattrib-13: Likewise.
+       * msgattrib-14: Likewise.
+       * msgattrib-15: Likewise.
+       * msgattrib-16: Likewise.
+       * msgattrib-17: Likewise.
+       * msgattrib-properties-1: Likewise.
+       * msgcat-1: Likewise.
+       * msgcat-2: Likewise.
+       * msgcat-3: Likewise.
+       * msgcat-4: Likewise.
+       * msgcat-5: Likewise.
+       * msgcat-6: Likewise.
+       * msgcat-7: Likewise.
+       * msgcat-8: Likewise.
+       * msgcat-9: Likewise.
+       * msgcat-10: Likewise.
+       * msgcat-11: Likewise.
+       * msgcat-13: Likewise.
+       * msgcat-15: Likewise.
+       * msgcat-16: Likewise.
+       * msgcat-properties-1: Likewise.
+       * msgcat-stringtable-1: Likewise.
+       * msgcmp-2: Likewise.
+       * msgcmp-3: Likewise.
+       * msgcomm-1: Likewise.
+       * msgcomm-2: Likewise.
+       * msgcomm-3: Likewise.
+       * msgcomm-4: Likewise.
+       * msgcomm-5: Likewise.
+       * msgcomm-6: Likewise.
+       * msgcomm-7: Likewise.
+       * msgcomm-8: Likewise.
+       * msgcomm-9: Likewise.
+       * msgcomm-10: Likewise.
+       * msgcomm-11: Likewise.
+       * msgcomm-12: Likewise.
+       * msgcomm-13: Likewise.
+       * msgcomm-14: Likewise.
+       * msgcomm-16: Likewise.
+       * msgcomm-17: Likewise.
+       * msgcomm-18: Likewise.
+       * msgcomm-19: Likewise.
+       * msgcomm-20: Likewise.
+       * msgcomm-21: Likewise.
+       * msgcomm-22: Likewise.
+       * msgcomm-23: Likewise.
+       * msgcomm-24: Likewise.
+       * msgcomm-25: Likewise.
+       * msgcomm-26: Likewise.
+       * msgconv-5: Likewise.
+       * msgconv-6: Likewise.
+       * msgen-1: Likewise.
+       * msgen-2: Likewise.
+       * msgen-3: Likewise.
+       * msgfilter-sr-latin-1: Likewise.
+       * msgfmt-1: Likewise.
+       * msgfmt-5: Likewise.
+       * msgfmt-7: Likewise.
+       * msgfmt-8: Likewise.
+       * msgfmt-9: Likewise.
+       * msgfmt-10: Likewise.
+       * msgfmt-12: Likewise.
+       * msgfmt-14: Likewise.
+       * msgfmt-16: Likewise.
+       * msgfmt-properties-1: Likewise.
+       * msggrep-1: Likewise.
+       * msggrep-2: Likewise.
+       * msggrep-3: Likewise.
+       * msggrep-4: Likewise.
+       * msggrep-5: Likewise.
+       * msggrep-6: Likewise.
+       * msggrep-7: Likewise.
+       * msggrep-8: Likewise.
+       * msgmerge-1: Likewise.
+       * msgmerge-3: Likewise.
+       * msgmerge-4: Likewise.
+       * msgmerge-5: Likewise.
+       * msgmerge-6: Likewise.
+       * msgmerge-7: Likewise.
+       * msgmerge-8: Likewise.
+       * msgmerge-10: Likewise.
+       * msgmerge-11: Likewise.
+       * msgmerge-12: Likewise.
+       * msgmerge-13: Likewise.
+       * msgmerge-14: Likewise.
+       * msgmerge-15: Likewise.
+       * msgmerge-16: Likewise.
+       * msgmerge-17: Likewise.
+       * msgmerge-18: Likewise.
+       * msgmerge-19: Likewise.
+       * msgmerge-20: Likewise.
+       * msgmerge-compendium-1: Likewise.
+       * msgmerge-compendium-2: Likewise.
+       * msgmerge-compendium-3: Likewise.
+       * msgmerge-compendium-4: Likewise.
+       * msgmerge-compendium-5: Likewise.
+       * msgmerge-compendium-6: Likewise.
+       * msgmerge-properties-1: Likewise.
+       * msgmerge-properties-2: Likewise.
+       * msgmerge-update-2: Likewise.
+       * msgunfmt-1: Likewise.
+       * msgunfmt-2: Likewise.
+       * msgunfmt-properties-1: Likewise.
+       * msguniq-1: Likewise.
+       * msguniq-2: Likewise.
+       * msguniq-3: Likewise.
+       * msguniq-5: Likewise.
+       * msguniq-6: Likewise.
+       * xgettext-2: Likewise.
+       * xgettext-6: Likewise.
+       * xgettext-7: Likewise.
+       * xgettext-9: Likewise.
+       * xgettext-awk-1: Likewise.
+       * xgettext-c-1: Likewise.
+       * xgettext-c-2: Likewise.
+       * xgettext-c-3: Likewise.
+       * xgettext-c-4: Likewise.
+       * xgettext-c-5: Likewise.
+       * xgettext-c-6: Likewise.
+       * xgettext-c-7: Likewise.
+       * xgettext-c-8: Likewise.
+       * xgettext-c-9: Likewise.
+       * xgettext-c-10: Likewise.
+       * xgettext-c-11: Likewise.
+       * xgettext-c-12: Likewise.
+       * xgettext-c-13: Likewise.
+       * xgettext-c-14: Likewise.
+       * xgettext-c-15: Likewise.
+       * xgettext-csharp-1: Likewise.
+       * xgettext-csharp-4: Likewise.
+       * xgettext-csharp-5: Likewise.
+       * xgettext-elisp-1: Likewise.
+       * xgettext-java-1: Likewise.
+       * xgettext-java-3: Likewise.
+       * xgettext-java-4: Likewise.
+       * xgettext-java-5: Likewise.
+       * xgettext-librep-1: Likewise.
+       * xgettext-lisp-1: Likewise.
+       * xgettext-objc-1: Likewise.
+       * xgettext-objc-2: Likewise.
+       * xgettext-perl-1: Likewise.
+       * xgettext-perl-4: Likewise.
+       * xgettext-perl-5: Likewise.
+       * xgettext-perl-6: Likewise.
+       * xgettext-php-1: Likewise.
+       * xgettext-php-2: Likewise.
+       * xgettext-po-1: Likewise.
+       * xgettext-properties-1: Likewise.
+       * xgettext-python-2: Likewise.
+       * xgettext-scheme-1: Likewise.
+       * xgettext-sh-1: Likewise.
+       * xgettext-sh-2: Likewise.
+       * xgettext-sh-3: Likewise.
+       * xgettext-sh-4: Likewise.
+       * xgettext-sh-5: Likewise.
+       * xgettext-smalltalk-1: Likewise.
+       * xgettext-tcl-2: Likewise.
+       * xgettext-ycp-1: Likewise.
+       * xgettext-ycp-2: Likewise.
+       * xgettext-ycp-3: Likewise.
+       * format-c-3: Likewise.
+       * format-c-4: Likewise.
+       * format-c-5: Likewise.
+       * plural-1: Likewise.
+       * lang-c: Likewise.
+       * lang-c++: Likewise.
+       * lang-objc: Likewise.
+       * lang-sh: Likewise.
+       * lang-bash: Likewise.
+       * lang-python-1: Likewise.
+       * lang-python-2: Likewise.
+       * lang-clisp: Likewise.
+       * lang-elisp: Likewise.
+       * lang-librep: Likewise.
+       * lang-guile: Likewise.
+       * lang-smalltalk: Likewise.
+       * lang-java: Likewise.
+       * lang-csharp: Likewise.
+       * lang-gawk: Likewise.
+       * lang-pascal: Likewise.
+       * lang-ycp: Likewise.
+       * lang-tcl: Likewise.
+       * lang-perl-1: Likewise.
+       * lang-perl-2: Likewise.
+       * lang-php: Likewise.
+       * lang-po: Likewise.
+       * lang-rst: Likewise.
+
 2007-04-30  Bruno Haible  <bruno@clisp.org>
 
         * lang-php: Remove 'echo' of printf result.
index 495fa181a0992e4d411cb157eff8aee9b5876530..e42cbdb7b32195c132bc74355c093781fe856fb5 100755 (executable)
@@ -5,9 +5,12 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles fc3.pot"
+tmpfiles="$tmpfiles fc3.tmp fc3.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc3.pot --omit-header --no-location ${top_srcdir}/tests/format-c-3-prg.c
+${XGETTEXT} -o fc3.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-3-prg.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fc3.tmp > fc3.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles fc3.ok"
 cat <<EOF > fc3.ok
@@ -33,12 +36,15 @@ test -d de/LC_MESSAGES || mkdir de/LC_MESSAGES
 : ${MSGFMT=msgfmt}
 ${MSGFMT} -o de/LC_MESSAGES/fc3.mo de.po
 
-tmpfiles="$tmpfiles de.po.tmp"
+tmpfiles="$tmpfiles de.po.tmp de.po.un"
 : ${MSGUNFMT=msgunfmt}
 ${MSGUNFMT} -o de.po.tmp de/LC_MESSAGES/fc3.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < de.po.tmp > de.po.un
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
-${DIFF} de.po de.po.tmp || exit 1
+${DIFF} de.po de.po.un || exit 1
 
 LANGUAGE= ./fc3 de_DE
 result=$?
index fcfe2e901f6632794f8fb38a4858dbe15e94ea74..4eef20004359b25eb1d6dd2d0c7c0a22146fa30a 100755 (executable)
@@ -5,9 +5,12 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles fc4.pot"
+tmpfiles="$tmpfiles fc4.tmp fc4.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc4.pot --omit-header --no-location ${top_srcdir}/tests/format-c-4-prg.c
+${XGETTEXT} -o fc4.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-4-prg.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fc4.tmp > fc4.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles fc4.ok"
 cat <<EOF > fc4.ok
@@ -37,12 +40,15 @@ test -d de/LC_MESSAGES || mkdir de/LC_MESSAGES
 : ${MSGFMT=msgfmt}
 ${MSGFMT} -o de/LC_MESSAGES/fc4.mo de.po
 
-tmpfiles="$tmpfiles de.po.tmp"
+tmpfiles="$tmpfiles de.po.tmp de.po.un"
 : ${MSGUNFMT=msgunfmt}
 ${MSGUNFMT} -o de.po.tmp de/LC_MESSAGES/fc4.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < de.po.tmp > de.po.un
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
-${DIFF} de.po de.po.tmp || exit 1
+${DIFF} de.po de.po.un || exit 1
 
 LANGUAGE= ./fc4 de_DE
 result=$?
index 469eef7e56837a6757184aae2a8dfbea5d43c5d6..65f92dcfbeb9c8bc8fed05c5c1d6eb924c94cf71 100755 (executable)
@@ -5,9 +5,12 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles fc5.pot"
+tmpfiles="$tmpfiles fc5.tmp fc5.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc5.pot --omit-header --no-location ${top_srcdir}/tests/format-c-5-prg.c
+${XGETTEXT} -o fc5.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-5-prg.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fc5.tmp > fc5.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles fc5.ok"
 cat <<EOF > fc5.ok
@@ -34,12 +37,15 @@ test -d fa/LC_MESSAGES || mkdir fa/LC_MESSAGES
 : ${MSGFMT=msgfmt}
 ${MSGFMT} -o fa/LC_MESSAGES/fc5.mo fa.po
 
-tmpfiles="$tmpfiles fa.po.tmp"
+tmpfiles="$tmpfiles fa.po.tmp fa.po.un"
 : ${MSGUNFMT=msgunfmt}
 ${MSGUNFMT} -o fa.po.tmp fa/LC_MESSAGES/fc5.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fa.po.tmp > fa.po.un
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
-${DIFF} fa.po fa.po.tmp || exit 1
+${DIFF} fa.po fa.po.un || exit 1
 
 LANGUAGE= ./fc5 fa_IR
 case $? in
index 18ba9daf66c5a32ed047a54733cd4e668027a79a..a8c4764a345132ddaca2afdc4e2ec46cfa96b623 100755 (executable)
@@ -13,7 +13,7 @@ cp $top_srcdir/tests/test.mo LC_MESSAGES
 tmpfiles="$tmpfiles gt-test1.out"
 : ${GETTEXT=gettext}
 TEXTDOMAINDIR=.. LANGUAGE=tests \
-${GETTEXT} --env LC_ALL=en -e test 'SYS_(C)\n' > gt-test1.out
+${GETTEXT} --env LC_ALL=en -e test 'SYS_(C)\n' | tr -d '\r' > gt-test1.out
 
 # Create correct file.
 tmpfile="$tmpfiles gtmf-test1.ok"
index 4700a0eacce0897ef9a109e86f8056a6bcf84017..83a3bd0efdda6fc40cd7de0fd2ce8d138bdd9662 100755 (executable)
@@ -25,14 +25,16 @@ $echo $"'Your command, please?', asked the waiter."
 $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`"
 EOF
 
-tmpfiles="$tmpfiles prog.pot prog.err"
+tmpfiles="$tmpfiles prog.tmp prog.pot prog.err"
 : ${XGETTEXT=xgettext}
 LC_MESSAGES=C LC_ALL= \
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh \
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.sh \
   >prog.err 2>&1
 result=$?
 cat prog.err | grep -v 'warning: the syntax \$"\.\.\." is deprecated due to security reasons'
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<\EOF > prog.ok
@@ -67,9 +69,12 @@ msgstr[0] "un morceau de gateau"
 msgstr[1] "$n morceaux de gateau"
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 32c799312b2a82c628b8f4f1382c3d3ec452406d..0f87ef4724df6d5a0e1afd8d24d7b85b215f1308 100755 (executable)
@@ -52,9 +52,12 @@ tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
 ${LIBTOOL} --quiet --mode=link ${CC} -I.. -I$top_srcdir/gnulib-lib ../gnulib-lib/libgettextlib.la -I../intl ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.c ${LTLIBINTL} \
   || exit 1
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location -k_ prog.c
+${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -100,9 +103,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 3f6a2cbebb3be902a4518251f23972cf97136a1f..7bc9da1da88c206893ae548a18d5ad1ee86a2872 100755 (executable)
@@ -73,9 +73,12 @@ ${CXX} -I.. -I../../gettext-runtime/libasprintf -I$top_srcdir/gnulib-lib -I../in
 ${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../gnulib-lib/libgettextlib.la ${LTLIBINTL} \
   || exit 1
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location -k_ prog.cc
+${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.cc
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -119,9 +122,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index b01b36a7589b333e86757446b9e95ca1b3e35ecb..6e685f7e425c44144ed764bb12bb543fa8205eb6 100755 (executable)
@@ -21,9 +21,12 @@ cat <<\EOF > prog.lisp
 (format t "~A~%" (format nil (gettext "~A is replaced by ~A.") "FF" "EUR"))
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.lisp
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.lisp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -67,9 +70,12 @@ msgid "~A is replaced by ~A."
 msgstr "~1@*~A remplace ~0@*~A."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index c81d9cc2725cc717bd7449d1af3be91fccae86d1..044303f1609a8c1c6205a1148de2db8d74b7d4d8 100755 (executable)
@@ -51,9 +51,12 @@ tmpfiles="$tmpfiles program.exe"
 : ${CSHARPCOMP="/bin/sh ../csharpcomp.sh"}
 ${CSHARPCOMP} -o program.exe -L ../../gettext-runtime/intl-csharp -l GNU.Gettext program.cs || exit 1
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location program.cs
+${XGETTEXT} -o prog.tmp --omit-header --no-location program.cs
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -97,9 +100,12 @@ msgid "{0} is replaced by {1}."
 msgstr "{1} remplace {0}."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index c8a50b929b964e891c3d8bcc620fb0a98f1d030a..d63c349da94c21ca302fc487c41272a98b08575b 100755 (executable)
@@ -16,9 +16,12 @@ cat <<\EOF > prog.el
         (format nil (_ "%s is replaced by %s.") "FF" "EUR"))
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.el
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.el
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -49,9 +52,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index a7bf855daa092f059600aa7628a8fb75a5f54c03..b464c26299ba26ae62725584b436b15aae24ac68 100755 (executable)
@@ -25,9 +25,12 @@ BEGIN {
 }
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.awk
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.awk
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -71,9 +74,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index deef89532ccfc976eff5f9f371889e5ce1b87729..5a4dc9859c228b0a1fbf995492de7357fd6680a9 100755 (executable)
@@ -24,9 +24,12 @@ cat <<\EOF > prog.scm
 (format #t "~A~%" (format #f (gettext "~A is replaced by ~A.") "FF" "EUR"))
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.scm
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.scm
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -70,9 +73,12 @@ msgid "~A is replaced by ~A."
 msgstr "~1@*~A remplace ~0@*~A."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 95024a65a24600961b4042c622f206a8b8a48513..64d6d5711b6dfce1f28e71129448b8ec48fc4403 100755 (executable)
@@ -76,9 +76,12 @@ tmpfiles="$tmpfiles Program.class prog.err"
 CLASSPATH=../../gettext-runtime/intl-java/libintl.jar ${JAVACOMP} -d . Program.java 2>prog.err \
   || { cat prog.err 1>&2; exit 1; }
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location Program.java
+${XGETTEXT} -o prog.tmp --omit-header --no-location Program.java
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -122,9 +125,12 @@ msgid "{0} is replaced by {1}."
 msgstr "{1} remplace {0}."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 75efcf2acc1e5ac2a5b192b6794a369f6bee4477..ddec7bbad883cbc31496276b7565f3a09bebeaae 100755 (executable)
@@ -20,9 +20,12 @@ cat <<\EOF > prog.jl
         (format nil (_ "%s is replaced by %s.") "FF" "EUR"))
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.jl
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.jl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -53,9 +56,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index e292b5439aa85e79e46153c3404a1325fe4464bd..4e49c6b07815db09e374c199e06587f053a75cd0 100755 (executable)
@@ -68,9 +68,12 @@ tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
 ${LIBTOOL} --quiet --mode=link ${CC} -I.. -I$top_srcdir/gnulib-lib ../gnulib-lib/libgettextlib.la -I../intl ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.m ${LTLIBINTL} \
   || exit 1
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location -k_ prog.m
+${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.m
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -116,9 +119,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index a1af057211b506baa33fc79a774b5cde284592be..933e3419faf6db39a341e82f2f2a826464bb950c 100755 (executable)
@@ -35,9 +35,12 @@ tmpfiles="$tmpfiles prog.o prog.rst prog"
   rm -fr $tmpfiles; exit 77
 }
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --add-location prog.rst
+${XGETTEXT} -o prog.tmp --omit-header --add-location prog.rst
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -70,9 +73,12 @@ msgid "%s is replaced by %s."
 msgstr "%1:s remplace %0:s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index fc3ed8905f315b912da422f2ae6cbdb3fe70dd1f..d4514a0391b3144076c36952f7684983ada9cda1 100755 (executable)
@@ -24,11 +24,14 @@ printf gettext "%s is replaced by %s.", "FF", "EUR";
 print "\n";
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} \
   -k__ --flag=__:1:pass-perl-format --flag=__:1:pass-perl-brace-format \
-  -o prog.pot --omit-header --no-location program.pl
+  -o prog.tmp --omit-header --no-location program.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -72,9 +75,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index af305ef639323d5e91dd7f9e27fbd7c0bae556d7..65ba222368d1d6d054b03baea3b02340e274b889 100755 (executable)
@@ -20,14 +20,17 @@ printf __x ("{old} is replaced by {new}.", old => "FF", new => "EUR");
 print "\n";
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} \
   -k__ --flag=__:1:pass-perl-format --flag=__:1:pass-perl-brace-format \
   -k__n:1,2 --flag=__n:1:pass-perl-format --flag=__n:1:pass-perl-brace-format \
             --flag=__n:2:pass-perl-format --flag=__n:2:pass-perl-brace-format \
   -k__x --flag=__x:1:perl-brace-format \
-  -o prog.pot --omit-header --no-location program.pl
+  -o prog.tmp --omit-header --no-location program.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -71,9 +74,12 @@ msgid "{old} is replaced by {new}."
 msgstr "{new} remplace {old}."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 6b5b7ee2be28157213b3c339907d3a7cd22b4ad9..affc72d06b84c65d4ae02f397dc346a5f7cacbe5 100755 (executable)
@@ -20,9 +20,12 @@ cat <<\EOF > prog.php
 ?>
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.php
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.php
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -51,9 +54,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index f5c7ba6ce9c6fd3583853d3ba9b9f2a00fd832ad..ea7f292341d5f2b7c044d2bb33791faedc09ea13 100755 (executable)
@@ -23,9 +23,12 @@ msgid "%s is replaced by %s."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --add-location prog-in.pot
+${XGETTEXT} -o prog.tmp --omit-header --add-location prog-in.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} prog-in.pot prog.pot || exit 1
@@ -55,9 +58,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles prog.po"
+tmpfiles="$tmpfiles prog.tmp.po prog.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.po --omit-header --add-location prog-in.po
+${XGETTEXT} -o prog.tmp.po --omit-header --add-location prog-in.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp.po > prog.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} prog-in.po prog.po || exit 1
index 53dc8226db42720da6c2b542cebfdc8e29a9982e..9f5224a07d772e50edfd2175107f5c6679a3966c 100755 (executable)
@@ -21,9 +21,12 @@ print gettext.gettext("%(oldCurrency)s is replaced by %(newCurrency)s.") \
       % { 'oldCurrency': "FF", 'newCurrency' : "EUR" }
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.py
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.py
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -54,9 +57,12 @@ msgid "%(oldCurrency)s is replaced by %(newCurrency)s."
 msgstr "%(newCurrency)s remplace %(oldCurrency)s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 3371eee55df68afe5d7a6bc0d7b2f2508e6eebde..5c1cbd9e463dca205249e0dad483162af0a3023e 100755 (executable)
@@ -27,9 +27,12 @@ print gettext.gettext("%(oldCurrency)s is replaced by %(newCurrency)s.") \
       % { 'oldCurrency': "FF", 'newCurrency' : "EUR" }
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.py
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.py
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -73,9 +76,12 @@ msgid "%(oldCurrency)s is replaced by %(newCurrency)s."
 msgstr "%(newCurrency)s remplace %(oldCurrency)s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 4acbe502ca0a4cb0de96fc5e9798da011844fc1c..b92b0edbd970518a4782c41443155ba9f652fb0a 100755 (executable)
@@ -22,9 +22,12 @@ rstconv.NoOutFilename='No output filename specified'
 rstconv.InvalidOutputFormat='Invalid output format -'
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --add-location prog.rst
+${XGETTEXT} -o prog.tmp --omit-header --add-location prog.rst
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
index 76c878fba948407af32bb4dfed6b5e2f13ffdbe1..95a66332d3bf565553e0b1b1bd185f089c86dd4c 100755 (executable)
@@ -28,9 +28,12 @@ $echo "`gettext \"'Your command, please?', asked the waiter.\"`"
 $echo "`eval_ngettext \"a piece of cake\" \"\\$n pieces of cake\" $n`"
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.sh
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.sh
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<\EOF > prog.ok
@@ -65,9 +68,12 @@ msgstr[0] "un morceau de gateau"
 msgstr[1] "$n morceaux de gateau"
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index bc34a5f2fc27427864d8a6e89c6c1ea94cc1d44e..c5387101000b5bc2f7f52a29607d2181d5c9b329 100755 (executable)
@@ -33,9 +33,12 @@ run
 Main new run!
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.st
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.st
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -79,9 +82,12 @@ msgid "%1 is replaced by %2."
 msgstr "%2 remplace %1."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 377ea21da56647fb4d9402a815b5f3e52bf8087d..20954118a1b49e8f7cbd96918de1b01620d0a8cc 100755 (executable)
@@ -21,9 +21,12 @@ puts [_ "'Your command, please?', asked the waiter."]
 puts [format [::msgcat::mc "%s is replaced by %s."] "FF" "EUR"]
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header -k_ program.tcl
+${XGETTEXT} -o prog.tmp --omit-header -k_ program.tcl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -56,9 +59,12 @@ msgid "%s is replaced by %s."
 msgstr "%2$s remplace %1$s."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 8dcbc616580a444416a44347863f811e9fc819fd..7bae85372efb18ba451132bcee90711d45d8ba66 100755 (executable)
@@ -16,9 +16,12 @@ cat <<\EOF > prog.ycp
 }
 EOF
 
-tmpfiles="$tmpfiles prog.pot"
+tmpfiles="$tmpfiles prog.tmp prog.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o prog.pot --omit-header --no-location prog.ycp
+${XGETTEXT} -o prog.tmp --omit-header --no-location prog.ycp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < prog.tmp > prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles prog.ok"
 cat <<EOF > prog.ok
@@ -62,9 +65,12 @@ msgid "%1 is replaced by %2."
 msgstr "%2 remplace %1."
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po prog.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 9e1fa8dfc00e40f2863df017610d3697ab2a1652..b87020c36bf59edf1864c153698d6072085b2224 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test1.out"
+tmpfiles="$tmpfiles ma-test1.tmp ma-test1.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --translated -o ma-test1.out ma-test1.po
+${MSGATTRIB} --translated -o ma-test1.tmp ma-test1.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test1.tmp > ma-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test1.ok"
index e982ce96fa347328e4d4fe04cd9be044dcac3a04..83ddad6f5dd724e67be0ad822302b408c22ac31a 100755 (executable)
@@ -57,9 +57,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test10.out"
+tmpfiles="$tmpfiles ma-test10.tmp ma-test10.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --set-obsolete -o ma-test10.out ma-test10.po
+${MSGATTRIB} --set-obsolete -o ma-test10.tmp ma-test10.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test10.tmp > ma-test10.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test10.ok"
index 7d980071bbfb0f69648263405454173ebc78e65a..66fa3b4d7db13be69b0191768dd5b0f32dcc70b0 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test11.out"
+tmpfiles="$tmpfiles ma-test11.tmp ma-test11.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --clear-obsolete -o ma-test11.out ma-test11.po
+${MSGATTRIB} --clear-obsolete -o ma-test11.tmp ma-test11.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test11.tmp > ma-test11.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test11.ok"
index cefc5d44f89375945f86d4b524f60c9e744f3379..74d2179cfaa40abdc4d0552bbaf04768af4b9957 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test12.out"
+tmpfiles="$tmpfiles ma-test12.tmp ma-test12.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --fuzzy -o ma-test12.out ma-test12.po
+${MSGATTRIB} --fuzzy -o ma-test12.tmp ma-test12.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test12.tmp > ma-test12.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test12.ok"
index 52343d7413f536de5227b2e6c66136d08174ab88..7c6e615a432f24de204a7b569699467663d89bbd 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test13.out"
+tmpfiles="$tmpfiles ma-test13.tmp ma-test13.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --obsolete -o ma-test13.out ma-test13.po
+${MSGATTRIB} --obsolete -o ma-test13.tmp ma-test13.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test13.tmp > ma-test13.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test13.ok"
index e4349998da694d1b2c93d838828b045d50747545..5d872a3b876b49008a4141e4be42519289b61fb1 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test14.out"
+tmpfiles="$tmpfiles ma-test14.tmp ma-test14.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --obsolete --no-fuzzy -o ma-test14.out ma-test14.po
+${MSGATTRIB} --obsolete --no-fuzzy -o ma-test14.tmp ma-test14.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test14.tmp > ma-test14.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test14.ok"
index c0eb80f510c68d8538bf223860a8b11a6618908d..b0d59d6102a6e8059da4fe33c809b8cab36ab192 100755 (executable)
@@ -51,9 +51,11 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer sous"
 EOF
 
-tmpfiles="$tmpfiles ma-test15.out"
+tmpfiles="$tmpfiles ma-test15.tmp ma-test15.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --clear-fuzzy -o ma-test15.out ma-test15.po
+${MSGATTRIB} --clear-fuzzy -o ma-test15.tmp ma-test15.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test15.tmp > ma-test15.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index addd26c06f5685b53878597c2ff91e7291c7ef3a..710db4dcbd056258f00b1c71d137418d84165497 100755 (executable)
@@ -44,9 +44,11 @@ msgstr "Argumente fehlen."
 #~ msgstr "%s: ungültige Option -- %c\n"
 EOF
 
-tmpfiles="$tmpfiles ma-test16.out"
+tmpfiles="$tmpfiles ma-test16.tmp ma-test16.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --fuzzy -o ma-test16.out ma-test16.po
+${MSGATTRIB} --fuzzy -o ma-test16.tmp ma-test16.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test16.tmp > ma-test16.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test16.ok"
index e2580575377740a1757f924dd91834c1eff7e022..3d30aefba83915106cce0497ad270b48c9b3e2f8 100755 (executable)
@@ -44,9 +44,11 @@ msgstr "Argumente fehlen."
 #~ msgstr "%s: ungültige Option -- %c\n"
 EOF
 
-tmpfiles="$tmpfiles ma-test17.out"
+tmpfiles="$tmpfiles ma-test17.tmp ma-test17.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --clear-previous -o ma-test17.out ma-test17.po
+${MSGATTRIB} --clear-previous -o ma-test17.tmp ma-test17.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test17.tmp > ma-test17.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test17.ok"
index 25a57759a96cda9aea7533b2d0bffd4f3a270e58..408bb44025f922089c5d544549df4e7ece631fef 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test2.out"
+tmpfiles="$tmpfiles ma-test2.tmp ma-test2.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --untranslated -o ma-test2.out ma-test2.po
+${MSGATTRIB} --untranslated -o ma-test2.tmp ma-test2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test2.tmp > ma-test2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test2.ok"
index 65e29cb3669e19c2a11a5e538c041218688357d0..8766e5c5d04763ed63eece0ed1b37f560ac1ece1 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test3.out"
+tmpfiles="$tmpfiles ma-test3.tmp ma-test3.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --no-fuzzy -o ma-test3.out ma-test3.po
+${MSGATTRIB} --no-fuzzy -o ma-test3.tmp ma-test3.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test3.tmp > ma-test3.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test3.ok"
index 8880b2c03c03491df093ff408892ebb99aa5bf25..5e7e1447d0f59917a732cca236df2e4c26f08221 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test4.out"
+tmpfiles="$tmpfiles ma-test4.tmp ma-test4.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --only-fuzzy -o ma-test4.out ma-test4.po
+${MSGATTRIB} --only-fuzzy -o ma-test4.tmp ma-test4.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test4.tmp > ma-test4.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test4.ok"
index adf4ebe5bdc7e422b24d2824a77dd379ee0cae11..dc0f584a88a774e76e607198c06ba901adce34c8 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test5.out"
+tmpfiles="$tmpfiles ma-test5.tmp ma-test5.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --no-obsolete -o ma-test5.out ma-test5.po
+${MSGATTRIB} --no-obsolete -o ma-test5.tmp ma-test5.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test5.tmp > ma-test5.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test5.ok"
index 02c516f0013cb5c3d1dc12e8e2273610e66bfe06..f35367946df85ff2595112c1cd66380598b4e478 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test6.out"
+tmpfiles="$tmpfiles ma-test6.tmp ma-test6.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --only-obsolete -o ma-test6.out ma-test6.po
+${MSGATTRIB} --only-obsolete -o ma-test6.tmp ma-test6.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test6.tmp > ma-test6.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test6.ok"
index 73d26a76b02e153300040e6463c811ababc5e0aa..fd72d2c84943ebb589ce0d8093711ac654d6815e 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test7.out"
+tmpfiles="$tmpfiles ma-test7.tmp ma-test7.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --translated --only-obsolete -o ma-test7.out ma-test7.po
+${MSGATTRIB} --translated --only-obsolete -o ma-test7.tmp ma-test7.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test7.tmp > ma-test7.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test7.ok"
index 098582d15d8045004e54ab57910c9be4aa58807b..c66c4bf34bbb6b70e0e2674e9a2a86b120302042 100755 (executable)
@@ -57,9 +57,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test8.out"
+tmpfiles="$tmpfiles ma-test8.tmp ma-test8.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --set-fuzzy -o ma-test8.out ma-test8.po
+${MSGATTRIB} --set-fuzzy -o ma-test8.tmp ma-test8.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test8.tmp > ma-test8.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test8.ok"
index 6a03577ec4c7611e20badea75ce09b1325f92b75..d3d4c6f3ce294794d1e45e5be79a566220f4b4af 100755 (executable)
@@ -56,9 +56,11 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
-tmpfiles="$tmpfiles ma-test9.out"
+tmpfiles="$tmpfiles ma-test9.tmp ma-test9.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --clear-fuzzy -o ma-test9.out ma-test9.po
+${MSGATTRIB} --clear-fuzzy -o ma-test9.tmp ma-test9.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-test9.tmp > ma-test9.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-test9.ok"
index cb5b260a85782d7a45d44bc241ddc82a4e54f01f..e027a1f2fc4f61f7ea76a9ba8498eb61dbb40aec 100755 (executable)
@@ -32,9 +32,11 @@ with\ wives\ who\ never\ understand=und ihre Frauen verstehen sie nicht
 !They\ warn\ you\ and\ darn\ you=
 EOF
 
-tmpfiles="$tmpfiles ma-s-1.out"
+tmpfiles="$tmpfiles ma-s-1.tmp ma-s-1.out"
 : ${MSGATTRIB=msgattrib}
-${MSGATTRIB} --translated --properties-input --properties-output -o ma-s-1.out ma-s-1.properties
+${MSGATTRIB} --translated --properties-input --properties-output -o ma-s-1.tmp ma-s-1.properties
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < ma-s-1.tmp > ma-s-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles ma-s-1.ok"
index 8a4c483fb22a7d1e25f59c5177799dee2f54670e..2ccaab123addea2631fb8a32bb98967ab33de4eb 100755 (executable)
@@ -41,9 +41,11 @@ msgid "1"
 msgstr "eins"
 EOF
 
-tmpfiles="$tmpfiles mcat-test1.out"
+tmpfiles="$tmpfiles mcat-test1.tmp mcat-test1.out"
 : ${MSGCAT=msgcat}
-${MSGCAT} -o mcat-test1.out mcat-test1.in1 mcat-test1.in2
+${MSGCAT} -o mcat-test1.tmp mcat-test1.in1 mcat-test1.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test1.tmp > mcat-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test1.ok"
index ada0a564c8c1f19ba9a5ec61a05db044e65317f7..10aee3af053697dc3f834fedf41a422d3267772c 100755 (executable)
@@ -59,13 +59,15 @@ msgstr ""
 "Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test10.out"
-rm -f mcat-test10.out
+tmpfiles="$tmpfiles mcat-test10.tmp mcat-test10.out"
+rm -f mcat-test10.tmp
 
 : ${MSGCAT=msgcat}
-${MSGCAT} --more-than=0 -o mcat-test10.out \
+${MSGCAT} --more-than=0 -o mcat-test10.tmp \
     mcat-test10.in1 mcat-test10.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test10.tmp > mcat-test10.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test10.ok"
 cat <<\EOF > mcat-test10.ok
index 970205b02b0de222340ce922c3759d69dafc96b1..3d1b88df927a335da238c747d22f51f951c6c3ca 100755 (executable)
@@ -33,9 +33,11 @@ msgid "whenever"
 msgstr "immer"
 EOF
 
-tmpfiles="$tmpfiles mcat-test11.out"
+tmpfiles="$tmpfiles mcat-test11.tmp mcat-test11.out"
 : ${MSGCAT=msgcat}
-${MSGCAT} -o mcat-test11.out mcat-test11.in
+${MSGCAT} -o mcat-test11.tmp mcat-test11.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test11.tmp > mcat-test11.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index e7ed7b42edb15f3ebc44d6ebc3ac2ad17337f48b..08be9ece56a1662fe05d97ec40a7d1193879bb77 100755 (executable)
@@ -68,10 +68,12 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer l'as"
 EOF
 
-tmpfiles="$tmpfiles mcat-test13.out"
-rm -f mcat-test13.out
+tmpfiles="$tmpfiles mcat-test13.tmp mcat-test13.out"
+rm -f mcat-test13.tmp
 : ${MSGCAT=msgcat}
-${MSGCAT} -o mcat-test13.out mcat-test13.in1 mcat-test13.in2
+${MSGCAT} -o mcat-test13.tmp mcat-test13.in1 mcat-test13.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test13.tmp > mcat-test13.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test13.ok"
index 7dd3f7b718527cb79b7be769a37be5753ff413ce..e9d1e0f0344a3ca40c724b7529acc85daac3d9e8 100755 (executable)
@@ -44,20 +44,24 @@ msgstr "Argumente fehlen."
 #~ msgstr "%s: ungültige Option -- %c\n"
 EOF
 
-tmpfiles="$tmpfiles mcat-test15.out1"
-rm -f mcat-test15.out1
+tmpfiles="$tmpfiles mcat-test15.tmp1 mcat-test15.out1"
+rm -f mcat-test15.tmp1
 : ${MSGCAT=msgcat}
-${MSGCAT} -o mcat-test15.out1 mcat-test15.in
+${MSGCAT} -o mcat-test15.tmp1 mcat-test15.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test15.tmp1 > mcat-test15.out1
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} mcat-test15.in mcat-test15.out1
 result=$?
 
-tmpfiles="$tmpfiles mcat-test15.out2"
-rm -f mcat-test15.out2
+tmpfiles="$tmpfiles mcat-test15.tmp2 mcat-test15.out2"
+rm -f mcat-test15.tmp2
 : ${MSGCAT=msgcat}
-${MSGCAT} --indent -o mcat-test15.out2 mcat-test15.in
+${MSGCAT} --indent -o mcat-test15.tmp2 mcat-test15.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test15.tmp2 > mcat-test15.out2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test15.ok"
index 16f937de7309a06569ecf825de46d267e00f4390..b433f05664b916b7b373abbf4e3c12fb6e17005c 100755 (executable)
@@ -45,10 +45,12 @@ msgid "too large arguments"
 msgstr "zu wenige Argumente"
 EOF
 
-tmpfiles="$tmpfiles mcat-test16.out"
-rm -f mcat-test16.out
+tmpfiles="$tmpfiles mcat-test16.tmp mcat-test16.out"
+rm -f mcat-test16.tmp
 : ${MSGCAT=msgcat}
-${MSGCAT} -o mcat-test16.out mcat-test16.in1 mcat-test16.in2
+${MSGCAT} -o mcat-test16.tmp mcat-test16.in1 mcat-test16.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test16.tmp > mcat-test16.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test16.ok"
index 84af857a656920b47c1e22807837aac909a65b91..072eddd0e736b61d13bf6cb33c4073511c6f75ee 100755 (executable)
@@ -53,16 +53,18 @@ msgid "You can log in as \"%1\"."
 msgstr "Sie können sich als \"%1\" einloggen."
 EOF
 
-tmpfiles="$tmpfiles mcat-test2.out mcat-test2.err"
-rm -f mcat-test2.out
+tmpfiles="$tmpfiles mcat-test2.tmp mcat-test2.err mcat-test2.out"
+rm -f mcat-test2.tmp
 
 : ${MSGCAT=msgcat}
 LC_MESSAGES=C LC_ALL= \
-${MSGCAT} --more-than=0 -o mcat-test2.out \
+${MSGCAT} --more-than=0 -o mcat-test2.tmp \
     mcat-test2.in1 mcat-test2.in2 >mcat-test2.err 2>&1
 result=$?
 cat mcat-test2.err | grep -v 'warning: .* encodings' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test2.tmp > mcat-test2.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test2.ok"
 cat << \EOF > mcat-test2.ok
index 591b1c7f0d520560966a59c5ea978d330e6575a9..030cc72a698bd81385bb034efb021cd0935efc10 100755 (executable)
@@ -54,16 +54,18 @@ msgid "You can log in as \"%1\"."
 msgstr "Sie können sich als \"%1\" einloggen."
 EOF
 
-tmpfiles="$tmpfiles mcat-test3.out mcat-test3.err"
-rm -f mcat-test3.out
+tmpfiles="$tmpfiles mcat-test3.tmp mcat-test3.err mcat-test3.out"
+rm -f mcat-test3.tmp
 
 : ${MSGCAT=msgcat}
 LC_MESSAGES=C LC_ALL= \
-${MSGCAT} --use-first --more-than=0 -o mcat-test3.out \
+${MSGCAT} --use-first --more-than=0 -o mcat-test3.tmp \
     mcat-test3.in1 mcat-test3.in2 >mcat-test3.err 2>&1
 result=$?
 cat mcat-test3.err | grep -v 'warning: .* encodings' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test3.tmp > mcat-test3.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test3.ok"
 cat << \EOF > mcat-test3.ok
index 9536b283a01e7d42344d431a9b16a902747a525f..8f5600c970b8d4b1e555545dcbcc46fa7b90d547 100755 (executable)
@@ -54,16 +54,18 @@ msgstr ""
 "Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test4.out mcat-test4.err"
-rm -f mcat-test4.out
+tmpfiles="$tmpfiles mcat-test4.tmp mcat-test4.err mcat-test4.out"
+rm -f mcat-test4.tmp
 
 : ${MSGCAT=msgcat}
 LC_MESSAGES=C LC_ALL= \
-${MSGCAT} --use-first --more-than=0 -o mcat-test4.out \
+${MSGCAT} --use-first --more-than=0 -o mcat-test4.tmp \
     mcat-test4.in1 mcat-test4.in2 >mcat-test4.err 2>&1
 result=$?
 cat mcat-test4.err | grep -v 'warning: .* encodings' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test4.tmp > mcat-test4.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test4.ok"
 cat << \EOF > mcat-test4.ok
index 3432503e641978c1d48ec159b43d92b523908cac..8225474113d445a4bef7aef361984d4d945a0e40 100755 (executable)
@@ -55,13 +55,15 @@ msgstr ""
 "Herzlichen Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test5.out"
-rm -f mcat-test5.out
+tmpfiles="$tmpfiles mcat-test5.tmp mcat-test5.out"
+rm -f mcat-test5.tmp
 
 : ${MSGCAT=msgcat}
-${MSGCAT} --use-first --more-than=0 -o mcat-test5.out \
+${MSGCAT} --use-first --more-than=0 -o mcat-test5.tmp \
     mcat-test5.in1 mcat-test5.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test5.tmp > mcat-test5.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test5.ok"
 cat << \EOF > mcat-test5.ok
index 06100a680128783ed2a410bd82c06b0936ca975c..4ed8d4466b6de67a4b3f2a56a93046f13ea55093 100755 (executable)
@@ -55,13 +55,15 @@ msgstr ""
 "Herzlichen Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test6.out"
-rm -f mcat-test6.out
+tmpfiles="$tmpfiles mcat-test6.tmp mcat-test6.out"
+rm -f mcat-test6.tmp
 
 : ${MSGCAT=msgcat}
-${MSGCAT} --more-than=0 -o mcat-test6.out \
+${MSGCAT} --more-than=0 -o mcat-test6.tmp \
     mcat-test6.in1 mcat-test6.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test6.tmp > mcat-test6.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test6.ok"
 cat << \EOF > mcat-test6.ok
index 867b7381dcea0159a61070067173d1be7b5f9bd8..d8008be205bb7ffd8fe516a9c7f537b385dac970 100755 (executable)
@@ -18,10 +18,12 @@ msgstr ""
 "1"
 EOF
 
-tmpfiles="$tmpfiles mcat-test7.out"
-rm -f mcat-test7.out
+tmpfiles="$tmpfiles mcat-test7.tmp mcat-test7.out"
+rm -f mcat-test7.tmp
 : ${MSGCAT=msgcat}
-${MSGCAT} --sort-output -o mcat-test7.out mcat-test7.in1
+${MSGCAT} --sort-output -o mcat-test7.tmp mcat-test7.in1
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test7.tmp > mcat-test7.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test7.ok"
index 310bc154d0aa18449d0d027d2b05464edf1e0e61..21b2c224378d60e7cb0140cafd360863feed2709 100755 (executable)
@@ -56,13 +56,15 @@ msgstr ""
 "Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test8.out"
-rm -f mcat-test8.out
+tmpfiles="$tmpfiles mcat-test8.tmp mcat-test8.out"
+rm -f mcat-test8.tmp
 
 : ${MSGCAT=msgcat}
-${MSGCAT} --more-than=0 -o mcat-test8.out \
+${MSGCAT} --more-than=0 -o mcat-test8.tmp \
     mcat-test8.in1 mcat-test8.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test8.tmp > mcat-test8.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test8.ok"
 cat <<\EOF > mcat-test8.ok
index 95e94a965c99d1d8ef22d5d50ee3cb2608c58607..e1d6e4c983e9c9edc07f1e858c631d85407e7a3c 100755 (executable)
@@ -55,13 +55,15 @@ msgstr ""
 "Glückwunsch!"
 EOF
 
-tmpfiles="$tmpfiles mcat-test9.out"
-rm -f mcat-test9.out
+tmpfiles="$tmpfiles mcat-test9.tmp mcat-test9.out"
+rm -f mcat-test9.tmp
 
 : ${MSGCAT=msgcat}
-${MSGCAT} --more-than=0 -o mcat-test9.out \
+${MSGCAT} --more-than=0 -o mcat-test9.tmp \
     mcat-test9.in1 mcat-test9.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-test9.tmp > mcat-test9.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-test9.ok"
 cat <<\EOF > mcat-test9.ok
index e22ce0a634f2d56c412b6a1b078b956e9fc225a7..931bec5e71f3cf8b4c0a71dee2b086fd00cd39f3 100755 (executable)
@@ -18,12 +18,14 @@ cat <<\EOF > mcat-p-1.in2
 Congratulations\!=Herzlichen Gl\u00fcckwunsch\!
 EOF
 
-tmpfiles="$tmpfiles mcat-p-1.out"
-rm -f mcat-p-1.out
+tmpfiles="$tmpfiles mcat-p-1.tmp mcat-p-1.out"
+rm -f mcat-p-1.tmp
 
 : ${MSGCAT=msgcat}
 ${MSGCAT} --use-first --more-than=0 --properties-input --properties-output \
-    -o mcat-p-1.out mcat-p-1.in1 mcat-p-1.in2
+    -o mcat-p-1.tmp mcat-p-1.in1 mcat-p-1.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-p-1.tmp > mcat-p-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-p-1.ok"
index 0037452bbabdb3e0fa3467b60f570f023bcd0714..f8ef7de8e64346b66dbf8129c6141dfd80d4ffc8 100755 (executable)
@@ -27,14 +27,16 @@ is completely ignored, even if in "quotes", or \escape characters, etc.
 "hoe322070.element";
 EOF
 
-tmpfiles="$tmpfiles mcat-s-1.out mcat-s-1.err"
-rm -f mcat-s-1.out
+tmpfiles="$tmpfiles mcat-s-1.tmp mcat-s-1.err mcat-s-1.out"
+rm -f mcat-s-1.tmp
 : ${MSGCAT=msgcat}
 LC_MESSAGES=C LC_ALL= \
-${MSGCAT} --stringtable-input -o mcat-s-1.out mcat-s-1.in >mcat-s-1.err 2>&1
+${MSGCAT} --stringtable-input -o mcat-s-1.tmp mcat-s-1.in >mcat-s-1.err 2>&1
 result=$?
 cat mcat-s-1.err | grep -v ': internationalized messages'
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcat-s-1.tmp > mcat-s-1.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-s-1.ok"
 cat << \EOF > mcat-s-1.ok
index e03bf3669c5bf184744be6c54a18e19c6116f6df..92e778058b2b998e995c5d50ba4569e5e7c3aff7 100755 (executable)
@@ -22,7 +22,7 @@ EOF
 tmpfiles="$tmpfiles mc-test2.out"
 : ${MSGCMP=msgcmp}
 LC_MESSAGES=C LC_ALL= \
-${MSGCMP} mc-test2.in1 mc-test2.in2 2>&1 | grep -v '^==' > mc-test2.out
+${MSGCMP} mc-test2.in1 mc-test2.in2 2>&1 | grep -v '^==' | tr -d '\r' > mc-test2.out
 
 tmpfiles="$tmpfiles mc-test2.ok"
 cat <<EOF > mc-test2.ok
index 00dfedb739b128e9ffa728424ba3adcd60123a51..d7855189388cea9aa6afb12b04ddda6fe133513e 100755 (executable)
@@ -22,7 +22,7 @@ EOF
 tmpfiles="$tmpfiles mc-test3.out"
 : ${MSGCMP=msgcmp}
 LC_MESSAGES=C LC_ALL= \
-${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' > mc-test3.out
+${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' | tr -d '\r' > mc-test3.out
 
 tmpfiles="$tmpfiles mc-test3.ok"
 cat <<EOF > mc-test3.ok
index fc3ca314a655fc9301fbfd6d581a36ba7abf7723..76561bcc19b98c84877f8a6151046b00f5f7f684 100755 (executable)
@@ -18,9 +18,11 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test1.out"
+tmpfiles="$tmpfiles mcomm-test1.tmp mcomm-test1.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test1.out mcomm-test1.in1 mcomm-test1.in2
+${MSGCOMM} --more-than=0 -o mcomm-test1.tmp mcomm-test1.in1 mcomm-test1.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test1.tmp > mcomm-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test1.ok"
index ed774e370003d55721d5e527df13dc90484eda79..17949e54a0f72bb6fb6f9de4dfcc622013265b00 100755 (executable)
@@ -40,11 +40,13 @@ msgid "1"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test10.out"
+tmpfiles="$tmpfiles mcomm-test10.tmp mcomm-test10.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test10.out \
+${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test10.tmp \
     mcomm-test10.in1 mcomm-test10.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test10.tmp > mcomm-test10.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test10.ok"
 cat << EOF > mcomm-test10.ok
index b5cbbf6a527db97b9396ca9c1ecd54445bbf3066..ed2cafcaaac013835d92a600143e849711e9927b 100755 (executable)
@@ -44,11 +44,13 @@ msgid "1"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test11.out"
+tmpfiles="$tmpfiles mcomm-test11.tmp mcomm-test11.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test11.out \
+${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test11.tmp \
     mcomm-test11.in1 mcomm-test11.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test11.tmp > mcomm-test11.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test11.ok"
 cat << EOF > mcomm-test11.ok
index 4f24895bf277915739ce0e0f0d6594d3ca7d4d76..0dd24ff31b340124017e14b1c4cbca7b4996f2bd 100755 (executable)
@@ -63,14 +63,16 @@ msgid "2"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test12.out"
+tmpfiles="$tmpfiles mcomm-test12.tmp mcomm-test12.out"
 : ${MSGCOMM=msgcomm}
 
 # --unique is shorthand for --less-than=2; do we've to test both
 # switches?  Are 'for' loops allowed? -ke-
-${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test12.out \
+${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test12.tmp \
     mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test12.tmp > mcomm-test12.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test12.ok"
 cat << EOF > mcomm-test12.ok
index bbccd5d0e1df4d832e71a31aa784d491431d6bde..a5ddc5b7210ae18182181fdc62f71f11ac302be0 100755 (executable)
@@ -66,14 +66,16 @@ msgid "2"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test13.out"
+tmpfiles="$tmpfiles mcomm-test13.tmp mcomm-test13.out"
 : ${MSGCOMM=msgcomm}
 
 # --unique is shorthand for --less-than=2; do we've to test both
 # switches?  Are 'for' loops allowed? -ke-
-${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test13.out \
+${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test13.tmp \
     mcomm-test13.in1 mcomm-test13.in2 mcomm-test13.in3
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test13.tmp > mcomm-test13.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test13.ok"
 cat << EOF > mcomm-test13.ok
index fa7c06c277f28e29d5ae90a130b7cb7dbb361b0e..e001415e30732f0ef8ee126e060789dcf51b1dde 100755 (executable)
@@ -61,14 +61,16 @@ msgid "1"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test14.out"
+tmpfiles="$tmpfiles mcomm-test14.tmp mcomm-test14.out"
 : ${MSGCOMM=msgcomm}
 
 # --unique is shorthand for --less-than=2; do we've to test both
 # switches?  Are 'for' loops allowed? -ke-
-${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test14.out \
+${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test14.tmp \
     mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test14.tmp > mcomm-test14.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test14.ok"
 cat << EOF > mcomm-test14.ok
index 3457e5303113a439119642b149eba77bba1b3731..42be7a5ebd6545b8bdbf546abc72026126b49342 100755 (executable)
@@ -53,16 +53,18 @@ msgid "You can log in as \"%1\"."
 msgstr "Sie können sich als \"%1\" einloggen."
 EOF
 
-tmpfiles="$tmpfiles mcomm-test16.out mcomm-test16.err"
-rm -f mcomm-test16.out
+tmpfiles="$tmpfiles mcomm-test16.tmp mcomm-test16.err mcomm-test16.out"
+rm -f mcomm-test16.tmp
 
 : ${MSGCOMM=msgcomm}
 LC_MESSAGES=C LC_ALL= \
-${MSGCOMM} --more-than=0 -o mcomm-test16.out \
+${MSGCOMM} --more-than=0 -o mcomm-test16.tmp \
     mcomm-test16.in1 mcomm-test16.in2 >mcomm-test16.err 2>&1
 result=$?
 cat mcomm-test16.err | grep -v 'warning: .* encodings' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test16.tmp > mcomm-test16.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test16.ok"
 cat << \EOF > mcomm-test16.ok
index 3d7916e7d49c5a4bd8715c80991f0715cf487ae0..20ad4509a342e72574a7c6c80dc310a915308ce0 100755 (executable)
@@ -65,13 +65,15 @@ msgid "5"
 msgstr "fünf"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test17.out"
+tmpfiles="$tmpfiles mcomm-test17.tmp mcomm-test17.out"
 : ${MSGCOMM=msgcomm}
 
 ${MSGCOMM} -u \
-           -o mcomm-test17.out \
+           -o mcomm-test17.tmp \
            mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test17.tmp > mcomm-test17.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test17.ok"
 cat << \EOF > mcomm-test17.ok
index 4cfe17f18391aef9e5dce47a27bcd08ebd8eedf1..fd9d95ce5576190f08493b649bd5452d9f7c07bd 100755 (executable)
@@ -20,9 +20,11 @@ msgid "1"
 msgstr "1x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test18.out"
+tmpfiles="$tmpfiles mcomm-test18.tmp mcomm-test18.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test18.out mcomm-test18.in1 mcomm-test18.in2
+${MSGCOMM} --more-than=0 -o mcomm-test18.tmp mcomm-test18.in1 mcomm-test18.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test18.tmp > mcomm-test18.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test18.ok"
index 07587daf74345ec682cd283c2babd0ffc8e5a8a3..599dda2713a88c2d99e975214ca49a1e9e1352ef 100755 (executable)
@@ -22,9 +22,11 @@ msgid "1"
 msgstr "1x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test19.out"
+tmpfiles="$tmpfiles mcomm-test19.tmp mcomm-test19.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test19.out mcomm-test19.in1 mcomm-test19.in2
+${MSGCOMM} --more-than=0 -o mcomm-test19.tmp mcomm-test19.in1 mcomm-test19.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test19.tmp > mcomm-test19.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test19.ok"
index b2e81bc1552e33fbbea982e35795b9bc65295459..86810f7281a58cd114d5f88d4f35e1f5a8c6afeb 100755 (executable)
@@ -18,11 +18,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test2.out"
+tmpfiles="$tmpfiles mcomm-test2.tmp mcomm-test2.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --no-location -o mcomm-test2.out \
+${MSGCOMM} --more-than=0 --no-location -o mcomm-test2.tmp \
     mcomm-test2.in1 mcomm-test2.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test2.tmp > mcomm-test2.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test2.ok"
 cat << EOF > mcomm-test2.ok
index 198c3add40faba56500437efac0d801d213b54e5..a68064b485b128d558a49ea9b33dc6623b0cbb2d 100755 (executable)
@@ -22,11 +22,13 @@ msgid "1"
 msgstr "1x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test20.out"
+tmpfiles="$tmpfiles mcomm-test20.tmp mcomm-test20.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test20.out \
+${MSGCOMM} --more-than=0 -o mcomm-test20.tmp \
     mcomm-test20.in1 mcomm-test20.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test20.tmp > mcomm-test20.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test20.ok"
 cat << EOF > mcomm-test20.ok
index 561c3701be131762b177b3d8383a33fda1f55f21..84bbfe52a8fa51ba75ff6a41020bf0ff86745d65 100755 (executable)
@@ -23,9 +23,11 @@ msgid "1"
 msgstr "1x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test21.out"
+tmpfiles="$tmpfiles mcomm-test21.tmp mcomm-test21.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test21.out mcomm-test21.in1 mcomm-test21.in2
+${MSGCOMM} --more-than=0 -o mcomm-test21.tmp mcomm-test21.in1 mcomm-test21.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test21.tmp > mcomm-test21.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test21.ok"
index 5d296008b48bf7f09666fe5c72bf8344b9cc8834..3f906053134cd0f33f24b84c7ffd4f115fea6e9d 100755 (executable)
@@ -62,14 +62,16 @@ msgid "memory exhausted"
 msgstr "virtueller Speicher erschöpft"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test22.out"
-rm -f mcomm-test22.out
+tmpfiles="$tmpfiles mcomm-test22.tmp mcomm-test22.out"
+rm -f mcomm-test22.tmp
 
 : ${MSGCOMM=msgcomm}
 
-${MSGCOMM} --less-than=2 -o mcomm-test22.out \
+${MSGCOMM} --less-than=2 -o mcomm-test22.tmp \
     mcomm-test22.in1 mcomm-test22.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test22.tmp > mcomm-test22.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test22.ok"
 cat << \EOF > mcomm-test22.ok
index dd75b2fd3d9d46eb1a49e4de7335bd7041832e02..818c44e012056afc4dd0828374376c528b9fa8ef 100755 (executable)
@@ -9,9 +9,11 @@ tmpfiles="$tmpfiles mcomm-23.in1 mcomm-23.in2"
 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in1
 cp ${top_srcdir}/tests/msguniq-a.in mcomm-23.in2
 
-tmpfiles="$tmpfiles mcomm-23.out"
+tmpfiles="$tmpfiles mcomm-23.tmp mcomm-23.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} -w 1000 -o mcomm-23.out mcomm-23.in1 mcomm-23.in2
+${MSGCOMM} -w 1000 -o mcomm-23.tmp mcomm-23.in1 mcomm-23.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-23.tmp > mcomm-23.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index c7c6a430954d6a2e3ff3bdb2ccbc5886209f46c5..652d201f1da080a32e8b66ee0b76711eb02dfefa 100755 (executable)
@@ -16,9 +16,11 @@ cat <<EOF > mcomm-test24.in2
 2=2x
 EOF
 
-tmpfiles="$tmpfiles mcomm-test24.out"
+tmpfiles="$tmpfiles mcomm-test24.tmp mcomm-test24.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.out mcomm-test24.in1 mcomm-test24.in2
+${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.tmp mcomm-test24.in1 mcomm-test24.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test24.tmp > mcomm-test24.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test24.ok"
index 0d3e1c5ba165d5440b561a3b81f928e3e54e1bb1..049caf2d64e5832dd9a2c6a82c4b1e75719a8ca3 100755 (executable)
@@ -68,9 +68,11 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer l'as"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test25.out"
+tmpfiles="$tmpfiles mcomm-test25.tmp mcomm-test25.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test25.out mcomm-test25.in1 mcomm-test25.in2
+${MSGCOMM} --more-than=0 -o mcomm-test25.tmp mcomm-test25.in1 mcomm-test25.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test25.tmp > mcomm-test25.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test25.ok"
index c1ab5f300345d7a596384bac9a0866b656236eb7..ee480947d6c1c1934c2e05f31169f18de42c35af 100755 (executable)
@@ -71,9 +71,11 @@ msgid "%s: illegal option -- %c\n"
 msgstr "%s: ungültige Optionen -- %c\n"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test26.out"
+tmpfiles="$tmpfiles mcomm-test26.tmp mcomm-test26.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} -o mcomm-test26.out mcomm-test26.in1 mcomm-test26.in2
+${MSGCOMM} -o mcomm-test26.tmp mcomm-test26.in1 mcomm-test26.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test26.tmp > mcomm-test26.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test26.ok"
index 71fa2a2cd71d7d26c6892a88e72a75ddbe8785e6..9ccc510e8b2648d5938e1fa3800b0c01fa138cda 100755 (executable)
@@ -18,11 +18,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test3.out"
+tmpfiles="$tmpfiles mcomm-test3.tmp mcomm-test3.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --omit-header -o mcomm-test3.out \
+${MSGCOMM} --more-than=0 --omit-header -o mcomm-test3.tmp \
     mcomm-test3.in1 mcomm-test3.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test3.tmp > mcomm-test3.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test3.ok"
 cat << EOF > mcomm-test3.ok
index 4b692e8859c6c33d208a36c3c67b5eb4c8405d44..551ac178ab95832fd004699506eca2702aea87b0 100755 (executable)
@@ -29,11 +29,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test4.out"
+tmpfiles="$tmpfiles mcomm-test4.tmp mcomm-test4.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 -o mcomm-test4.out \
+${MSGCOMM} --more-than=0 -o mcomm-test4.tmp \
     mcomm-test4.in1 mcomm-test4.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test4.tmp > mcomm-test4.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test4.ok"
 cat << EOF > mcomm-test4.ok
index ad6c95ef69c560fc47d42a715cfc9494d906a6f7..72bb18a3587f433b258bdae0b83ec0a39b0dccea 100755 (executable)
@@ -29,11 +29,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test5.out"
+tmpfiles="$tmpfiles mcomm-test5.tmp mcomm-test5.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --omit-header -o mcomm-test5.out \
+${MSGCOMM} --more-than=0 --omit-header -o mcomm-test5.tmp \
     mcomm-test5.in1 mcomm-test5.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test5.tmp > mcomm-test5.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test5.ok"
 cat << EOF > mcomm-test5.ok
index 459de059272b036e65876f3f67ad9b085360612d..29bf24ce4a4a5752f37348a793f00f98b848a8f8 100755 (executable)
@@ -29,11 +29,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test6.out"
+tmpfiles="$tmpfiles mcomm-test6.tmp mcomm-test6.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.out \
+${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.tmp \
     mcomm-test6.in1 mcomm-test6.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test6.tmp > mcomm-test6.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test6.ok"
 cat << EOF > mcomm-test6.ok
index 673851353c3a985a05e3fc947879014cb2c36fa9..dff5165d2a16df314f2e2ef14a66727a7faf8af4 100755 (executable)
@@ -29,11 +29,13 @@ msgid "2"
 msgstr "2x"
 EOF
 
-tmpfiles="$tmpfiles mcomm-test7.out"
+tmpfiles="$tmpfiles mcomm-test7.tmp mcomm-test7.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=0 --no-location --omit-header -o mcomm-test7.out \
+${MSGCOMM} --more-than=0 --no-location --omit-header -o mcomm-test7.tmp \
     mcomm-test7.in1 mcomm-test7.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test7.tmp > mcomm-test7.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test7.ok"
 cat << EOF > mcomm-test7.ok
index bb9e1faac03383bc6a3e577e532d2268d7245f06..19c71a4964ae3c38d282bcccd9396dcce11b6195 100755 (executable)
@@ -40,11 +40,13 @@ msgid "1"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test8.out"
+tmpfiles="$tmpfiles mcomm-test8.tmp mcomm-test8.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=1 -o mcomm-test8.out \
+${MSGCOMM} --more-than=1 -o mcomm-test8.tmp \
     mcomm-test8.in1 mcomm-test8.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test8.tmp > mcomm-test8.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test8.ok"
 cat << EOF > mcomm-test8.ok
index 553a766f5ce15c06532a8f2d63c68d67578d3a5f..6ed9d84b75067daf73f55bb1cfdf0e563434825a 100755 (executable)
@@ -40,11 +40,13 @@ msgid "1"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mcomm-test9.out"
+tmpfiles="$tmpfiles mcomm-test9.tmp mcomm-test9.out"
 : ${MSGCOMM=msgcomm}
-${MSGCOMM} --more-than=1 --no-location -o mcomm-test9.out \
+${MSGCOMM} --more-than=1 --no-location -o mcomm-test9.tmp \
     mcomm-test9.in1 mcomm-test9.in2
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mcomm-test9.tmp > mcomm-test9.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcomm-test9.ok"
 cat << EOF > mcomm-test9.ok
index ab352a1080a5886c414aaaf9cd39e7da53c6cd46..fd448d0cb46bd7442a08965b6ab8ed6aa6c61945 100755 (executable)
@@ -51,9 +51,11 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer sous"
 EOF
 
-tmpfiles="$tmpfiles mco-test5.out"
+tmpfiles="$tmpfiles mco-test5.tmp mco-test5.out"
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=UTF-8 -o mco-test5.out mco-test5.po
+${MSGCONV} --to-code=UTF-8 -o mco-test5.tmp mco-test5.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mco-test5.tmp > mco-test5.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mco-test5.ok"
index a3f25c76b67389f1c1c6735af1a7ff8bd8b0fb1e..3982e0c22897c112b31c71c24a21295d72d4afcb 100755 (executable)
@@ -24,9 +24,11 @@ msgid "full turn"
 msgstr "Volle 360 Grad"
 EOF
 
-tmpfiles="$tmpfiles mco-test6.out"
+tmpfiles="$tmpfiles mco-test6.tmp mco-test6.out"
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.out mco-test6.po
+${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.tmp mco-test6.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mco-test6.tmp > mco-test6.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mco-test6.ok"
index 6f57b508f69c59e3dd43b82a01a50a04009096e7..2f54fe8fd51803a08f5ad2a53f45ad89d65690fc 100755 (executable)
@@ -29,9 +29,11 @@ msgstr[0] ""
 msgstr[1] ""
 EOF
 
-tmpfiles="$tmpfiles men-test1.out"
+tmpfiles="$tmpfiles men-test1.tmp men-test1.out"
 : ${MSGEN=msgen}
-${MSGEN} -o men-test1.out men-test1.po
+${MSGEN} -o men-test1.tmp men-test1.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < men-test1.tmp > men-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles men-test1.ok"
index 9f07f1db35b59f80b17ccf54d72ec22e3e69569b..7d51ad32f28480b64460d6a788afb1d44ab1ed4a 100755 (executable)
@@ -14,9 +14,11 @@ color\ cannot\ be\ transparent=colour cannot be transparent
 width\ must\ be\ positive=
 EOF
 
-tmpfiles="$tmpfiles men-test2.out"
+tmpfiles="$tmpfiles men-test2.tmp men-test2.out"
 : ${MSGEN=msgen}
-${MSGEN} --properties-input --properties-output -o men-test2.out men-test2.properties
+${MSGEN} --properties-input --properties-output -o men-test2.tmp men-test2.properties
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < men-test2.tmp > men-test2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles men-test2.ok"
index 244b4e585dcfa40bb5668950f868edf273aa4852..e1b442c5a59ca48cb137570df33d39b63edf8cb8 100755 (executable)
@@ -43,9 +43,11 @@ msgid "copier"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles men-test3.out"
+tmpfiles="$tmpfiles men-test3.tmp men-test3.out"
 : ${MSGEN=msgen}
-${MSGEN} -o men-test3.out men-test3.pot
+${MSGEN} -o men-test3.tmp men-test3.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < men-test3.tmp > men-test3.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles men-test3.ok"
index 8d8402fb5d22f81cdfeb93507814103adb37b92d..c98ca61780fadd94ffea394a2ada872e3b6f13ff 100755 (executable)
@@ -308,9 +308,12 @@ msgstr ""
 "Óîáè÷à¼åíè Ã¤Ã¨Ã°Ã¥ÃªÃ²Ã®Ã°Ã¨Â¼Ã³Ã¬ Ã§Ã  Ã²Ã°Ã Ã¦Ã¥\9cÃ¥: %s\n"
 EOF
 
-tmpfiles="$tmpfiles mfi-srl-1.out"
+tmpfiles="$tmpfiles mfi-srl-1.tmp mfi-srl-1.out"
 : ${MSGFILTER=msgfilter}
-${MSGFILTER} -i mfi-srl-1.po -o mfi-srl-1.out recode-sr-latin || { rm -fr $tmpfiles; exit 1; }
+${MSGFILTER} -i mfi-srl-1.po -o mfi-srl-1.tmp recode-sr-latin
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mfi-srl-1.tmp > mfi-srl-1.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mfi-srl-1.ok"
 cat <<\EOF > mfi-srl-1.ok
index 5c07132e148aae7bec1843b8cc48234f7502f4a2..a22ee7d7b02cc3d79af9363fc7e27414785f1574 100755 (executable)
@@ -63,7 +63,7 @@ tmpfiles="$tmpfiles mf-test1.out"
 : ${GETTEXT=gettext}
 TEXTDOMAINDIR=.. LANGUAGE=tests \
 ${GETTEXT} --env LC_ALL=en gen 'SYS_(C)
-' > mf-test1.out
+' | tr -d '\r' > mf-test1.out
 
 tmpfiles="$tmpfiles gtmf-test1.ok"
 cat <<EOF > gtmf-test1.ok
index 000119aad8a694f61429e194ff42b9e6a0050890..0eee57c84188ffe8c6bd02d7d477d0846322fe24 100755 (executable)
@@ -70,7 +70,7 @@ tmpfiles="$tmpfiles mf-test10.err"
 : ${MSGFMT=msgfmt}
 LC_MESSAGES=C LC_ALL= \
 ${MSGFMT} --check -o /dev/null mf-test10.po2 \
-    2>&1 | grep -v '^==' > mf-test10.err
+    2>&1 | grep -v '^==' | tr -d '\r' > mf-test10.err
 
 tmpfiles="$tmpfiles mf-test10.ok"
 cat << EOF > mf-test10.ok
index 23b376f6f29c913fd2f2407e2709232bb34414a2..fe763f279a356d4882087b6c584547a0cedfc8e8 100755 (executable)
@@ -27,9 +27,11 @@ tmpfiles="$tmpfiles mf-12.mo"
 ${MSGFMT} -o mf-12.mo mf-12.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mf-12.out"
+tmpfiles="$tmpfiles mf-12.tmp mf-12.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o mf-12.out mf-12.mo
+${MSGUNFMT} -o mf-12.tmp mf-12.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mf-12.tmp > mf-12.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mf-12.ok"
index 7b54c8415379f895e7d7f636ce8e3febd1b7feb0..c3a337977a30f15e4fed74fde0195e23d038562c 100755 (executable)
@@ -56,9 +56,11 @@ tmpfiles="$tmpfiles mf-14.mo"
 ${MSGFMT} -o mf-14.mo mf-14.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mf-14.out"
+tmpfiles="$tmpfiles mf-14.tmp mf-14.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o mf-14.out mf-14.mo
+${MSGUNFMT} -o mf-14.tmp mf-14.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mf-14.tmp > mf-14.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mf-14.ok"
index 3c998f1704f29fd74027df5e47f49ce5ada52aab..0f1517704e0774b7e3b63cba820a26e5fa180232 100755 (executable)
@@ -49,9 +49,11 @@ tmpfiles="$tmpfiles mf-16.mo"
 ${MSGFMT} -o mf-16.mo mf-16.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mf-16.out"
+tmpfiles="$tmpfiles mf-16.tmp mf-16.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o mf-16.out mf-16.mo
+${MSGUNFMT} -o mf-16.tmp mf-16.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mf-16.tmp > mf-16.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mf-16.ok"
index ccdd3493201a7c33df9ccac25b202cc729749e85..d0f87a72e408ace84dfed675663d06db79a437f3 100755 (executable)
@@ -37,11 +37,15 @@ tmpfiles="$tmpfiles foo-de.mo foo-fr.mo"
 ${MSGFMT} foo.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles foo-de.out foo-fr.out"
+tmpfiles="$tmpfiles foo-de.tmp foo-de.out foo-fr.tmp foo-fr.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o foo-de.out foo-de.mo
+${MSGUNFMT} -o foo-de.tmp foo-de.mo
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
-${MSGUNFMT} -o foo-fr.out foo-fr.mo
+tr -d '\r' < foo-de.tmp > foo-de.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+${MSGUNFMT} -o foo-fr.tmp foo-fr.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < foo-fr.tmp > foo-fr.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles foo-de.ok"
index f399d6c4a831e72f81c9601c59a0450033df4f3e..f35c5ebf62fea031f66c241136b9ad6b4546fbc0 100755 (executable)
@@ -30,7 +30,7 @@ tmpfiles="$tmpfiles mf-test7.err"
 : ${MSGFMT=msgfmt}
 LC_MESSAGES=C LC_ALL= \
 ${MSGFMT} --verbose --check mf-test7.in1 -o /dev/null \
-    2>&1 | grep -v '^==' > mf-test7.err
+    2>&1 | grep -v '^==' | tr -d '\r' > mf-test7.err
 
 tmpfiles="$tmpfiles mf-test7.ok"
 cat << EOF > mf-test7.ok
index 515ff58cbd065bb6b041fee76dc587c653a17f96..07d85011fedea714c202437c625d45e3a52a2085 100755 (executable)
@@ -30,7 +30,7 @@ tmpfiles="$tmpfiles mf-test8.err"
 : ${MSGFMT=msgfmt}
 LC_MESSAGES=C LC_ALL= \
 ${MSGFMT} --verbose --check mf-test8.in1 -o /dev/null \
-    2>&1 | grep -v '^==' > mf-test8.err
+    2>&1 | grep -v '^==' | tr -d '\r' > mf-test8.err
 
 tmpfiles="$tmpfiles mf-test8.ok"
 cat << EOF > mf-test8.ok
index 1a897d1055da5c4ad5f1342d94dc1a079c694653..e9a26a00edea333ba5e47fc642e7bfb434c0fe58 100755 (executable)
@@ -33,7 +33,7 @@ tmpfiles="$tmpfiles mf-test9.err"
 : ${MSGFMT=msgfmt}
 LC_MESSAGES=C LC_ALL= \
 ${MSGFMT} --verbose --check mf-test9.in1 -o /dev/null \
-    2>&1 | grep -v '^==' > mf-test9.err
+    2>&1 | grep -v '^==' | tr -d '\r' > mf-test9.err
 
 tmpfiles="$tmpfiles mf-test9.ok"
 cat << EOF > mf-test9.ok
index 5e2d8e3b32c5b0cfe4539add2daa6f9fa68f51b2..94657b26da4cb686f46bc8187033fd4e9b418741 100755 (executable)
@@ -43,7 +43,7 @@ tmpfiles="$tmpfiles mf-test1.out"
 : ${GETTEXT=gettext}
 TEXTDOMAINDIR=.. LANGUAGE=tests \
 ${GETTEXT} --env LC_ALL=en gen 'SYS_(C)
-' > mf-test1.out
+' | tr -d '\r' > mf-test1.out
 
 tmpfiles="$tmpfiles gtmf-test1.ok"
 cat <<EOF > gtmf-test1.ok
index 8f235e96a3d161571134098c88f0afd903dc1088..a6b0cba321b74293690f048fbd6382a732c820de 100755 (executable)
@@ -155,9 +155,11 @@ msgid "%s subprocess got fatal signal"
 msgstr "Subprozess %s hat ein fatales Signal erhalten"
 EOF
 
-tmpfiles="$tmpfiles mg-test1.out"
+tmpfiles="$tmpfiles mg-test1.tmp mg-test1.out"
 : ${MSGGREP=msggrep}
-${MSGGREP} -N pipe-bidi.c -o mg-test1.out mg-test1.po
+${MSGGREP} -N pipe-bidi.c -o mg-test1.tmp mg-test1.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test1.tmp > mg-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test1.ok"
index 017a6a47f70d3f549869a886fa48e3c20d0b1dca..fdb47096bbb7e4e67431157cdb75e6d69e3f2dd0 100755 (executable)
@@ -152,9 +152,11 @@ msgid "%s: option `-W %s' doesn't allow an argument\n"
 msgstr "%s: l'option Â« -W %s Â» ne tolère pas d'argument\n"
 EOF
 
-tmpfiles="$tmpfiles mg-test2.out"
+tmpfiles="$tmpfiles mg-test2.tmp mg-test2.out"
 : ${MSGGREP=msggrep}
-${MSGGREP} -M fr -o mg-test2.out mg-test2.po
+${MSGGREP} -M fr -o mg-test2.tmp mg-test2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test2.tmp > mg-test2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test2.ok"
index 87f0fab70a989a6bf1089b7b77ae9c5973769b54..ad698b2b5d3ea7511c9e21ce9da54f178658a330 100755 (executable)
@@ -159,13 +159,15 @@ msgid "GSG-9"
 msgstr "Antiterror-Einheit"
 EOF
 
-tmpfiles="$tmpfiles mg-test3.out mg-test3.err"
+tmpfiles="$tmpfiles mg-test3.tmp mg-test3.err mg-test3.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} -K -e error -T -e Speicher -o mg-test3.out mg-test3.po >mg-test3.err 2>&1
+${MSGGREP} -K -e error -T -e Speicher -o mg-test3.tmp mg-test3.po >mg-test3.err 2>&1
 result=$?
 cat mg-test3.err | grep -v 'warning: Locale charset' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test3.tmp > mg-test3.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test3.ok"
 cat <<\EOF > mg-test3.ok
index 60f75854802157af041806c2ef054bf129b3d4c8..65be819197f856eefff171c2c24a289216a3f248 100755 (executable)
@@ -161,13 +161,15 @@ echo 'invalid' > mg-test4.in1
 tmpfiles="$tmpfiles mg-test4.in2"
 echo 'illegal' > mg-test4.in2
 
-tmpfiles="$tmpfiles mg-test4.out mg-test4.err"
+tmpfiles="$tmpfiles mg-test4.tmp mg-test4.err mg-test4.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} -K -e error -f mg-test4.in1 -f mg-test4.in2 -e cannot -o mg-test4.out mg-test4.po > mg-test4.err 2>&1
+${MSGGREP} -K -e error -f mg-test4.in1 -f mg-test4.in2 -e cannot -o mg-test4.tmp mg-test4.po > mg-test4.err 2>&1
 result=$?
 cat mg-test4.err | grep -v 'warning: Locale charset' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test4.tmp > mg-test4.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test4.ok"
 cat <<\EOF > mg-test4.ok
index 3ea8e35ce0d8fcbeaf7ee3a09d5498af2fbab990..60e64622468e22225c27dcc861dbd856e2b54056 100755 (executable)
@@ -167,13 +167,15 @@ msgid "GSG-9"
 msgstr "Antiterror-Einheit"
 EOF
 
-tmpfiles="$tmpfiles mg-test5.out mg-test5.err"
+tmpfiles="$tmpfiles mg-test5.tmp mg-test5.err mg-test5.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} -C -e @proofread -o mg-test5.out mg-test5.po >mg-test5.err 2>&1
+${MSGGREP} -C -e @proofread -o mg-test5.tmp mg-test5.po >mg-test5.err 2>&1
 result=$?
 cat mg-test5.err | grep -v 'warning: Locale charset' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test5.tmp > mg-test5.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test5.ok"
 cat <<\EOF > mg-test5.ok
index 896e50a6153cf84996cb7499f1584150774b495f..7f30d5f6d28a4b51afb8ec44f9bf3dc94c1c941c 100755 (executable)
@@ -114,12 +114,14 @@ cannot\ create\ pipe=Es ist nicht m\u00f6glich, eine Pipe zu erzeugen
 GSG-9=Antiterror-Einheit
 EOF
 
-tmpfiles="$tmpfiles mg-test6.out"
+tmpfiles="$tmpfiles mg-test6.tmp mg-test6.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.out mg-test6.properties
+${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.tmp mg-test6.properties
 result=$?
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test6.tmp > mg-test6.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test6.ok"
 cat <<\EOF > mg-test6.ok
index 8ed0829dbdb32ee14424c6d83090b1dd1f19a3aa..3e4fb01ad895c822e598a56600a2817648909cd7 100755 (executable)
@@ -51,10 +51,12 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer sous"
 EOF
 
-tmpfiles="$tmpfiles mg-test7.out"
+tmpfiles="$tmpfiles mg-test7.tmp mg-test7.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} -J -e "File|" -o mg-test7.out mg-test7.po
+${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test7.tmp > mg-test7.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test7.ok"
index a49d9d0539f2a27c26079066bd652bbcfb7baa60..d0994c60ba59fe11dadfaa0efd621ab8c94d434d 100755 (executable)
@@ -35,13 +35,15 @@ msgid "repeat %d times"
 msgstr "%d mal wiederholen"
 EOF
 
-tmpfiles="$tmpfiles mg-test8.out mg-test8.err"
+tmpfiles="$tmpfiles mg-test8.tmp mg-test8.err mg-test8.out"
 : ${MSGGREP=msggrep}
 LC_MESSAGES=C LC_ALL= \
-${MSGGREP} -X -e c-form -o mg-test8.out mg-test8.po >mg-test8.err 2>&1
+${MSGGREP} -X -e c-form -o mg-test8.tmp mg-test8.po >mg-test8.err 2>&1
 result=$?
 cat mg-test8.err | grep -v 'warning: Locale charset' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mg-test8.tmp > mg-test8.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mg-test8.ok"
 cat <<\EOF > mg-test8.ok
index bb3ea57c85e4d6442e60772b42d2263b8ccd8586..2331eb313f58bec0ae943ca8ebc7601b8fa99c61 100755 (executable)
@@ -38,9 +38,11 @@ msgid "3"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test1.out"
+tmpfiles="$tmpfiles mm-test1.tmp mm-test1.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test1.out mm-test1.in1 mm-test1.in2
+${MSGMERGE} -q -o mm-test1.tmp mm-test1.in1 mm-test1.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test1.tmp > mm-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test1.ok"
index be5777b709c1810acc55d073bf825939cf6b1617..9827a98c76eab2a474935801e55319138921583a 100755 (executable)
@@ -54,9 +54,11 @@ msgstr[0] ""
 msgstr[1] ""
 EOF
 
-tmpfiles="$tmpfiles mm-test10.out"
+tmpfiles="$tmpfiles mm-test10.tmp mm-test10.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test10.out mm-test10.po mm-test10.pot
+${MSGMERGE} -q -o mm-test10.tmp mm-test10.po mm-test10.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test10.tmp > mm-test10.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test10.ok"
index 5a9ad94f4851b0ac189e18cee562567f7e8536d2..4373474bf8e51ef34a080aa265d17d9f6cd94872 100755 (executable)
@@ -56,9 +56,11 @@ msgstr[0] ""
 msgstr[1] ""
 EOF
 
-tmpfiles="$tmpfiles mm-test11.out"
+tmpfiles="$tmpfiles mm-test11.tmp mm-test11.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test11.out mm-test11.po mm-test11.pot
+${MSGMERGE} -q -o mm-test11.tmp mm-test11.po mm-test11.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test11.tmp > mm-test11.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test11.ok"
index 799b22498c6d54cbdbb60fc88fac4d3f60404956..91bc9b0d5755da7a78bf5bf58aff5dc912fae258 100755 (executable)
@@ -54,9 +54,11 @@ msgid "%d error"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test12.out"
+tmpfiles="$tmpfiles mm-test12.tmp mm-test12.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test12.out mm-test12.po mm-test12.pot
+${MSGMERGE} -q -o mm-test12.tmp mm-test12.po mm-test12.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test12.tmp > mm-test12.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test12.ok"
index 487c879b9ca0e83583b6f0548aaaf16c016b9723..826d908f52c7581df4df810ad70b1f77660d290c 100755 (executable)
@@ -87,9 +87,11 @@ msgid "%age"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test13.out"
+tmpfiles="$tmpfiles mm-test13.tmp mm-test13.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test13.out mm-test13.po mm-test13.pot
+${MSGMERGE} -q -o mm-test13.tmp mm-test13.po mm-test13.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test13.tmp > mm-test13.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test13.ok"
index f70d2862bf92baa32d50d25b66c2b7fea6e415ac..38c841116adc8131d71d6c555d277666f0213e2d 100755 (executable)
@@ -58,9 +58,11 @@ msgid "Überlauf"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test14.out"
+tmpfiles="$tmpfiles mm-test14.tmp mm-test14.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test14.out mm-test14-ru.po mm-test14.pot
+${MSGMERGE} -q -o mm-test14.tmp mm-test14-ru.po mm-test14.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test14.tmp > mm-test14.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test14.ok"
index b5167299122e9a5d8ddf6fd9625be43988abdfcb..336c9b5cb5ff35400045b0423495b7479786e632 100755 (executable)
@@ -29,9 +29,11 @@ msgid "invalid argument `%s' for `%s'"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test15.out"
+tmpfiles="$tmpfiles mm-test15.tmp mm-test15.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test15.out mm-test15.pot mm-test15.po
+${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test15.tmp > mm-test15.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test15.ok"
index 3bd454bdc510672caa26d384f86ed71e594ecc35..2174cd23565b3991ffcba72d034788a7106ae8c6 100755 (executable)
@@ -60,9 +60,11 @@ msgid "error %1."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test16.new.po"
+tmpfiles="$tmpfiles mm-test16.tmp.po mm-test16.new.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test16.new.po mm-test16.po mm-test16.pot
+${MSGMERGE} -q -o mm-test16.tmp.po mm-test16.po mm-test16.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test16.tmp.po > mm-test16.new.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test16.ok"
index f5b101ab27007489ab7a4e0959284eb31e8887c4..1864079b372cc981d801b91de99c63dc311ee6e8 100755 (executable)
@@ -54,9 +54,11 @@ msgid "%s is replaced by %s."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test17.new.po"
+tmpfiles="$tmpfiles mm-test17.tmp.po mm-test17.new.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test17.new.po mm-test17.po mm-test17.pot
+${MSGMERGE} -q -o mm-test17.tmp.po mm-test17.po mm-test17.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test17.tmp.po > mm-test17.new.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test17.ok"
index de2197ce05a38c1afebe4ac6f677c592e2b9799c..5bc7b9313b7653d9a80273811676f6f6a0de0854 100755 (executable)
@@ -120,9 +120,11 @@ EOF
 ${MSGCMP} --use-fuzzy --use-untranslated mm-test18.po mm-test18.pot 2>/dev/null
 test $? = 1 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-test18.new.po"
+tmpfiles="$tmpfiles mm-test18.tmp.po mm-test18.new.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test18.new.po mm-test18.po mm-test18.pot
+${MSGMERGE} -q -o mm-test18.tmp.po mm-test18.po mm-test18.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test18.tmp.po > mm-test18.new.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test18.ok"
index 37e4b7be107b108be4d9a61a7bbc1acb20eb6a83..88b294b57e172bab551bde8ffb867c7cfe22822a 100755 (executable)
@@ -80,9 +80,11 @@ msgid "%s: invalid option -- %c\n"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test19.new1.po"
+tmpfiles="$tmpfiles mm-test19.tmp.po mm-test19.new1.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q --previous -o mm-test19.new1.po mm-test19.po mm-test19.pot
+${MSGMERGE} -q --previous -o mm-test19.tmp.po mm-test19.po mm-test19.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test19.tmp.po > mm-test19.new1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test19.ok1"
@@ -168,9 +170,11 @@ msgid "Missing arguments."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test19.new2.po"
+tmpfiles="$tmpfiles mm-test19.tmp.po mm-test19.new2.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q --previous -o mm-test19.new2.po mm-test19.new1.po mm-test19.pot
+${MSGMERGE} -q --previous -o mm-test19.tmp.po mm-test19.new1.po mm-test19.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test19.tmp.po > mm-test19.new2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test19.ok2"
index eb083b8c9396348f965ced0dc9b4584f0118748e..45545f9f38cf5d0044bee299f6649d26ce7270c3 100755 (executable)
@@ -75,9 +75,11 @@ msgstr ""
 #~ msgstr "Dieses Programm läuft mit der Prozeß-Nummer {pid}."
 EOF
 
-tmpfiles="$tmpfiles mm-test20.new.po"
+tmpfiles="$tmpfiles mm-test20.tmp.po mm-test20.new.po"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test20.new.po mm-test20.po mm-test20.pot
+${MSGMERGE} -q -o mm-test20.tmp.po mm-test20.po mm-test20.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test20.tmp.po > mm-test20.new.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test20.ok"
index be903cad50367b57a736f48137ca8b9a787cbbaf..e77100ff9fcfdf2fb26580808a3a3e5320516eb9 100755 (executable)
@@ -52,9 +52,11 @@ msgstr ""
 # trailing comments should be removed, even here
 EOF
 
-tmpfiles="$tmpfiles mm-test3.out"
+tmpfiles="$tmpfiles mm-test3.tmp mm-test3.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test3.out mm-test3.in1 mm-test3.in2
+${MSGMERGE} -q -o mm-test3.tmp mm-test3.in1 mm-test3.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test3.tmp > mm-test3.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test3.ok"
index 1489a12e27eda94344e0992f801728edf5486527..9f076b479aad72f5a64b04614be067186d9feea3 100755 (executable)
@@ -27,9 +27,11 @@ msgid "three"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test4.out"
+tmpfiles="$tmpfiles mm-test4.tmp mm-test4.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test4.out mm-test4.in1.po mm-test4.in2.po
+${MSGMERGE} -q -o mm-test4.tmp mm-test4.in1.po mm-test4.in2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test4.tmp > mm-test4.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test4.ok"
index 66127f77c9f80a50b89c64e56d2b7cb2f1782633..997fe17476cf5856e00adbb187eaccf43ca44d14 100755 (executable)
@@ -39,13 +39,15 @@ msgstr ""
 "blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n"
 EOF
 
-tmpfiles="$tmpfiles mm-test5.out mm-test5.err"
+tmpfiles="$tmpfiles mm-test5.tmp mm-test5.out mm-test5.err"
 : ${MSGMERGE=msgmerge}
 LC_MESSAGES=C LC_ALL= \
-${MSGMERGE} -q -o mm-test5.out mm-test5.in1.po mm-test5.in2.po >mm-test5.err 2>&1
+${MSGMERGE} -q -o mm-test5.tmp mm-test5.in1.po mm-test5.in2.po >mm-test5.err 2>&1
 result=$?
 cat mm-test5.err | grep -v 'warning: Charset' | grep -v '^ '
 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test5.tmp > mm-test5.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test5.ok"
 cat <<EOF > mm-test5.ok
index d06e6988cd56179fd9b3cf07c244df2ee8b2a31d..eb4ab663f27683f4a3cd7b478511250cf6e4307e 100755 (executable)
@@ -56,10 +56,12 @@ msgid "was correct."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test6.out"
+tmpfiles="$tmpfiles mm-test6.tmp mm-test6.out"
 : ${MSGMERGE=msgmerge}
 LC_MESSAGES=C LC_ALL= \
-${MSGMERGE} -q -o mm-test6.out mm-test6.in1.po mm-test6.in2.po
+${MSGMERGE} -q -o mm-test6.tmp mm-test6.in1.po mm-test6.in2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test6.tmp > mm-test6.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test6.ok"
index 09955ce46545e7b36fee229a94559abb7d3bfb52..ae3ffff7034639d24ca24e9cbf2d8420da3378f3 100755 (executable)
@@ -42,9 +42,11 @@ msgid "Hello"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test7.out"
+tmpfiles="$tmpfiles mm-test7.tmp mm-test7.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-test7.out mm-test7.po mm-test7.pot
+${MSGMERGE} -q -o mm-test7.tmp mm-test7.po mm-test7.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test7.tmp > mm-test7.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test7.ok"
index 6eda8efeb51fd29005fbc0b5a999c1defb3179e7..912e308f1aa0a0e7c7b7bc6b6d631ecd73c08969 100755 (executable)
@@ -38,9 +38,11 @@ msgid "Hello"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-test8.out"
+tmpfiles="$tmpfiles mm-test8.tmp mm-test8.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} --multi-domain -q -o mm-test8.out mm-test8.po mm-test8.pot
+${MSGMERGE} --multi-domain -q -o mm-test8.tmp mm-test8.po mm-test8.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-test8.tmp > mm-test8.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-test8.ok"
index ce489f54330948ebc2c0dff49e7fd1c4df2a953e..b695529ac693526217c87cccee120286c2b181db 100755 (executable)
@@ -28,9 +28,11 @@ msgid "2"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-c-1.out"
+tmpfiles="$tmpfiles mm-c-1.tmp mm-c-1.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -C mm-c-1.com -o mm-c-1.out mm-c-1.in1 mm-c-1.pot
+${MSGMERGE} -q -C mm-c-1.com -o mm-c-1.tmp mm-c-1.in1 mm-c-1.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-1.tmp > mm-c-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-c-1.ok"
index 295a943813cba6ef35a6e34d7a2012b4ed1d622a..65ad975fb7df275d6aa9e202f30d2f890a96511e 100755 (executable)
@@ -28,9 +28,11 @@ msgid "one, two, three..."
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-c-2.out"
+tmpfiles="$tmpfiles mm-c-2.tmp mm-c-2.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -C mm-c-2.com -o mm-c-2.out mm-c-2.in1 mm-c-2.pot
+${MSGMERGE} -q -C mm-c-2.com -o mm-c-2.tmp mm-c-2.in1 mm-c-2.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-2.tmp > mm-c-2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-c-2.ok"
index c0174eb7d3d067a8895f8b6a69ae015c60d35baa..066021384442f48fbbd04389bfbca0d53d32f821 100755 (executable)
@@ -36,9 +36,11 @@ msgid "one, two, three"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-c-3.out"
+tmpfiles="$tmpfiles mm-c-3.tmp mm-c-3.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -C mm-c-3.com -o mm-c-3.out mm-c-3.in1 mm-c-3.pot
+${MSGMERGE} -q -C mm-c-3.com -o mm-c-3.tmp mm-c-3.in1 mm-c-3.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-3.tmp > mm-c-3.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-c-3.ok"
index 397ae6416b34e8267e0fddd3c0651cb3a147f8cf..307876acdb8be36b2a1f0ad00ee15306459c5edd 100755 (executable)
@@ -29,9 +29,11 @@ msgid "5"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-c-4.out"
+tmpfiles="$tmpfiles mm-c-4.tmp mm-c-4.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q --compendium mm-c-4.com -o mm-c-4.out /dev/null mm-c-4.pot
+${MSGMERGE} -q --compendium mm-c-4.com -o mm-c-4.tmp /dev/null mm-c-4.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-4.tmp > mm-c-4.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-c-4.ok"
index 9d635f075c8f247009ef1a9542bec719ebab2a16..7bf86660aa609fc1145df0db7364556a129627b9 100755 (executable)
@@ -5,12 +5,14 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles mm-c-5.out"
+tmpfiles="$tmpfiles mm-c-5.tmp mm-c-5.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-5.out \
+${MSGMERGE} -q -o mm-c-5.tmp \
   --compendium ${top_srcdir}/tests/mm-viet.comp.po \
   /dev/null ${top_srcdir}/tests/mm-viet.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-5.tmp > mm-c-5.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} ${top_srcdir}/tests/mm-viet.out mm-c-5.out
index f12375a9389bcaeccadbecfa2a12144b79574641..d7324c9b92842363050bf6e193924c99b7cde79f 100755 (executable)
@@ -21,66 +21,82 @@ tmpfiles="$tmpfiles mm-ko-comp.utf-8.po"
 : ${MSGCONV=msgconv}
 ${MSGCONV} --to-code=UTF-8 -o mm-ko-comp.utf-8.po ${top_srcdir}/tests/mm-ko-comp.euc-kr.po
 
-tmpfiles="$tmpfiles mm-c-6-AEE.out"
+tmpfiles="$tmpfiles mm-c-6-AEE.tmp mm-c-6-AEE.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-AEE.out \
+${MSGMERGE} -q -o mm-c-6-AEE.tmp \
   --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \
   ${top_srcdir}/tests/mm-ko.euc-kr.po ${top_srcdir}/tests/mm-ko.ascii.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-AEE.tmp > mm-c-6-AEE.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-AEU.out"
+tmpfiles="$tmpfiles mm-c-6-AEU.tmp mm-c-6-AEU.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-AEU.out \
+${MSGMERGE} -q -o mm-c-6-AEU.tmp \
   --compendium mm-ko-comp.utf-8.po \
   ${top_srcdir}/tests/mm-ko.euc-kr.po ${top_srcdir}/tests/mm-ko.ascii.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-AEU.tmp > mm-c-6-AEU.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-AUE.out"
+tmpfiles="$tmpfiles mm-c-6-AUE.tmp mm-c-6-AUE.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-AUE.out \
+${MSGMERGE} -q -o mm-c-6-AUE.tmp \
   --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \
   mm-ko.utf-8.po ${top_srcdir}/tests/mm-ko.ascii.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-AUE.tmp > mm-c-6-AUE.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-AUU.out"
+tmpfiles="$tmpfiles mm-c-6-AUU.tmp mm-c-6-AUU.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-AUU.out \
+${MSGMERGE} -q -o mm-c-6-AUU.tmp \
   --compendium mm-ko-comp.utf-8.po \
   mm-ko.utf-8.po ${top_srcdir}/tests/mm-ko.ascii.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-AUU.tmp > mm-c-6-AUU.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-UEE.out"
+tmpfiles="$tmpfiles mm-c-6-UEE.tmp mm-c-6-UEE.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-UEE.out \
+${MSGMERGE} -q -o mm-c-6-UEE.tmp \
   --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \
   ${top_srcdir}/tests/mm-ko.euc-kr.po mm-ko.utf-8.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-UEE.tmp > mm-c-6-UEE.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-UEU.out"
+tmpfiles="$tmpfiles mm-c-6-UEU.tmp mm-c-6-UEU.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-UEU.out \
+${MSGMERGE} -q -o mm-c-6-UEU.tmp \
   --compendium mm-ko-comp.utf-8.po \
   ${top_srcdir}/tests/mm-ko.euc-kr.po mm-ko.utf-8.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-UEU.tmp > mm-c-6-UEU.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-UUE.out"
+tmpfiles="$tmpfiles mm-c-6-UUE.tmp mm-c-6-UUE.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-UUE.out \
+${MSGMERGE} -q -o mm-c-6-UUE.tmp \
   --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \
   mm-ko.utf-8.po mm-ko.utf-8.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-UUE.tmp > mm-c-6-UUE.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mm-c-6-UUU.out"
+tmpfiles="$tmpfiles mm-c-6-UUU.tmp mm-c-6-UUU.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o mm-c-6-UUU.out \
+${MSGMERGE} -q -o mm-c-6-UUU.tmp \
   --compendium mm-ko-comp.utf-8.po \
   mm-ko.utf-8.po mm-ko.utf-8.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-c-6-UUU.tmp > mm-c-6-UUU.out
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-c-6-U.ok mm-c-6-E.ok"
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=UTF-8 -o mm-c-6-U.ok mm-c-6-UUU.out
-${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | sed -e 's,EUC-KR,euc-kr,' > mm-c-6-E.ok
+${MSGCONV} --to-code=UTF-8 mm-c-6-UUU.out | tr -d '\r' > mm-c-6-U.ok
+${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | sed -e 's,EUC-KR,euc-kr,' | tr -d '\r' > mm-c-6-E.ok
 
 : ${DIFF=diff}
 ${DIFF} mm-c-6-E.ok mm-c-6-AEE.out || { rm -fr $tmpfiles; exit 1; }
index 8660eb85592cfab053d1d834266083fb4b95833b..874e4895bd66ec6310969653b0717644f9f46a86 100755 (executable)
@@ -37,9 +37,11 @@ still\ existing=here is normally no comment
 # trailing comments should be removed, even here
 EOF
 
-tmpfiles="$tmpfiles mm-p-1.out"
+tmpfiles="$tmpfiles mm-p-1.tmp mm-p-1.out"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q --properties-input --properties-output -o mm-p-1.out mm-p-1.in1 mm-p-1.in2
+${MSGMERGE} -q --properties-input --properties-output -o mm-p-1.tmp mm-p-1.in1 mm-p-1.in2
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-p-1.tmp > mm-p-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-p-1.ok"
index 3f37b8d960d8fbce66168aca7248d888b4344739..7c38e18a159e1ca38cbdf3d5eed432b5ae449861 100755 (executable)
@@ -19,10 +19,13 @@ cat <<EOF > mm-p-2.pot
 !white=
 EOF
 
-tmpfiles="$tmpfiles mm-p-2.po~"
+tmpfiles="$tmpfiles mm-p-2.po~ mm-p-2.tmp"
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q --properties-input --update mm-p-2.po mm-p-2.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+mv mm-p-2.po mm-p-2.tmp || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-p-2.tmp > mm-p-2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-p-2.ok"
 cat <<\EOF > mm-p-2.ok
index 0f0c58edfd0a9378c2a8c44cd864d0674f336e59..dbc5aa0d497d66b714d854a9261140aecc795b89 100755 (executable)
@@ -51,10 +51,13 @@ msgid "white"
 msgstr ""
 EOF
 
-tmpfiles="$tmpfiles mm-u-2.po~"
+tmpfiles="$tmpfiles mm-u-2.po~ mm-u-2.tmp"
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q --update mm-u-2.po mm-u-2.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+mv mm-u-2.po mm-u-2.tmp || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mm-u-2.tmp > mm-u-2.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mm-u-2.ok"
 cat <<\EOF > mm-u-2.ok
index 2ed457a0692b38b04532ef5752c8369cfdc248ea..5a11b45818372601c7fc8d633e03abb547550eb4 100755 (executable)
@@ -37,9 +37,11 @@ tmpfiles="$tmpfiles mu-test1.mo"
 ${MSGFMT} -o mu-test1.mo mu-test1.in
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mu-test1.out"
+tmpfiles="$tmpfiles mu-test1.tmp mu-test1.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o mu-test1.out mu-test1.mo
+${MSGUNFMT} -o mu-test1.tmp mu-test1.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mu-test1.tmp > mu-test1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index 70a1e85ba6b5bad728d5345a7aa152919bb9e9ca..f8d93153637bfd1a55b41520050607965f293734 100755 (executable)
@@ -20,9 +20,11 @@ tmpfiles="$tmpfiles mu-2.mo"
 ${MSGFMT} -o mu-2.mo mu-2.in
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mu-2.out"
+tmpfiles="$tmpfiles mu-2.tmp mu-2.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} -o mu-2.out mu-2.mo
+${MSGUNFMT} -o mu-2.tmp mu-2.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mu-2.tmp > mu-2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index 2f25eab89933ae84a71d3dc7c6bf4c41248dd5e5..6d4c2177d2cb862a53065104d9b5784630873f58 100755 (executable)
@@ -29,9 +29,11 @@ tmpfiles="$tmpfiles mu-p-1.mo"
 ${MSGFMT} --properties-input -o mu-p-1.mo mu-p-1.in
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
-tmpfiles="$tmpfiles mu-p-1.out"
+tmpfiles="$tmpfiles mu-p-1.tmp mu-p-1.out"
 : ${MSGUNFMT=msgunfmt}
-${MSGUNFMT} --properties-output -o mu-p-1.out mu-p-1.mo
+${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < mu-p-1.tmp > mu-p-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index d2fca45b6419aa283ce095c49a55718b5044f71d..7157f343a230aaad7e5bd9dcf5ac2b2b5ccd0c4f 100755 (executable)
@@ -5,9 +5,11 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles msguniq-1.out"
+tmpfiles="$tmpfiles msguniq-1.tmp msguniq-1.out"
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -o msguniq-1.out ${top_srcdir}/tests/msguniq-a.in
+${MSGUNIQ} -w 1000 -o msguniq-1.tmp ${top_srcdir}/tests/msguniq-a.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < msguniq-1.tmp > msguniq-1.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
index 8ebf16f757173c73e087afc623496f124f95ee7e..d9171e64a7c240604411d813f4d48cfeb87fb10c 100755 (executable)
@@ -5,9 +5,11 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles msguniq-2.out"
+tmpfiles="$tmpfiles msguniq-2.tmp msguniq-2.out"
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -u -o msguniq-2.out ${top_srcdir}/tests/msguniq-a.in
+${MSGUNIQ} -w 1000 -u -o msguniq-2.tmp ${top_srcdir}/tests/msguniq-a.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < msguniq-2.tmp > msguniq-2.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles msguniq-2.ok"
index 8a6567f5ec19d7b2d649032071c04b8c5d7d858b..4ea6300d2e9dad1b31cbf1026dbbdb10b7bb9d6a 100755 (executable)
@@ -5,9 +5,11 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles msguniq-3.out"
+tmpfiles="$tmpfiles msguniq-3.tmp msguniq-3.out"
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -d -o msguniq-3.out ${top_srcdir}/tests/msguniq-a.in
+${MSGUNIQ} -w 1000 -d -o msguniq-3.tmp ${top_srcdir}/tests/msguniq-a.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < msguniq-3.tmp > msguniq-3.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles msguniq-3.ok"
index 79a1a6a18f6ccdeadc9eb1a683d67dae6dc32c8a..05dcaaa63b259bc9201e32b6e1e42573f35b5108 100755 (executable)
@@ -56,9 +56,11 @@ msgstr "photocopieur"
 #~ msgstr "Enregistrer sous"
 EOF
 
-tmpfiles="$tmpfiles msguniq-5.out"
+tmpfiles="$tmpfiles msguniq-5.tmp msguniq-5.out"
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -o msguniq-5.out msguniq-5.po
+${MSGUNIQ} -o msguniq-5.tmp msguniq-5.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < msguniq-5.tmp > msguniq-5.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles msguniq-5.ok"
index e9a9e7fec313631a31ef8d93366b64c0d5e53ce4..399668fa491faa5c3d20a6f98c72117ad718560e 100755 (executable)
@@ -69,9 +69,11 @@ msgid "%s: option requires more than one argument\n"
 msgstr "%s: Option erwartet ein Argument -- %c\n"
 EOF
 
-tmpfiles="$tmpfiles msguniq-6.out"
+tmpfiles="$tmpfiles msguniq-6.tmp msguniq-6.out"
 : ${MSGUNIQ=msguniq}
-${MSGUNIQ} -o msguniq-6.out msguniq-6.in
+${MSGUNIQ} -o msguniq-6.tmp msguniq-6.in
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < msguniq-6.tmp > msguniq-6.out
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles msguniq-6.ok"
index d46b0fae3e2855b050ad154a4742b14cefd7b39b..1fc34a5f72e4069224d48ec4c76b0b49ed5a5714 100755 (executable)
@@ -3,9 +3,12 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles cake.pot"
+tmpfiles="$tmpfiles cake.tmp cake.pot"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o cake.pot --omit-header --no-location ${top_srcdir}/tests/plural-1-prg.c
+${XGETTEXT} -o cake.tmp --omit-header --no-location ${top_srcdir}/tests/plural-1-prg.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < cake.tmp > cake.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles cake.ok"
 cat <<EOF > cake.ok
@@ -29,9 +32,12 @@ msgstr[0] "un morceau de gateau"
 msgstr[1] "%d morceaux de gateau"
 EOF
 
-tmpfiles="$tmpfiles fr.po.new"
+tmpfiles="$tmpfiles fr.po.tmp fr.po.new"
 : ${MSGMERGE=msgmerge}
-${MSGMERGE} -q -o fr.po.new fr.po cake.pot
+${MSGMERGE} -q -o fr.po.tmp fr.po cake.pot
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < fr.po.tmp > fr.po.new
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} fr.po fr.po.new || exit 1
index 92d19ba0817d3aa8c6ada933bab6dd6140afd5d5..10ed3b2bca7db54fa7feaef519471d8434dc6790 100755 (executable)
@@ -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"
index 51f04d413795eea5d6afc24fbcf2c04ecdb2b7b2..a9f581b1f12775b4667a771c1d63e9a81398c094 100755 (executable)
@@ -87,14 +87,16 @@ printf (_ ("php-format positive1"), _ ("php-format negative1"));
 printk (_ ("php-format negative2"));
 EOF
 
-tmpfiles="$tmpfiles xg-test6.po"
+tmpfiles="$tmpfiles xg-test6.tmp.po xg-test6.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-test6 \
+${XGETTEXT} --omit-header --no-location -d xg-test6.tmp \
   --flag=my_printf:1:python-format \
   xg-test6.c xg-test6.sh xg-test6.py xg-test6.lisp xg-test6.el \
   xg-test6.jl xg-test6.java xg-test6.awk xg-test6.ycp xg-test6.tcl \
   xg-test6.pl xg-test6.php 
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-test6.tmp.po > xg-test6.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-test6.ok"
 cat <<\EOF > xg-test6.ok
index 20a4de0601facd45459869acd348a72015fd4407..4113edd8bc5d761f83e8c67b5c66f250a667376a 100755 (executable)
@@ -20,9 +20,11 @@ gettext ("abc");
 gettext ("abc");
 EOF
 
-tmpfiles="$tmpfiles xg-test7.po"
+tmpfiles="$tmpfiles xg-test7.tmp.po xg-test7.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --add-comments -d xg-test7 xg-test7.c
+${XGETTEXT} --omit-header --add-comments -d xg-test7.tmp xg-test7.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-test7.tmp.po > xg-test7.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-test7.ok"
index 2f4aa80c74a6fd8c2eb0f74c3d981bcb3935e74f..524215e542e20d8256fd7912819b2cfcb03f6d4a 100755 (executable)
@@ -22,12 +22,14 @@ label ("pigeon");
 label ("pigeon");
 EOF
 
-tmpfiles="$tmpfiles xg-test9.po"
+tmpfiles="$tmpfiles xg-test9.tmp.po xg-test9.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header \
   --keyword=label:1,\"xhtml-format\",\"xml-format\" \
   --keyword=title:1,\"xhtml-format\",\"xml-format\" \
-  -d xg-test9 xg-test9.c
+  -d xg-test9.tmp xg-test9.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-test9.tmp.po > xg-test9.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-test9.ok"
index e910632e852a46b77804a418e4b85be9b12f16fb..ef46fe434825c3e466fada3ed821cdccf881f69a 100755 (executable)
@@ -18,10 +18,12 @@ print _"Hey Jude"
 print _"The Fabulous Four"
 EOF
 
-tmpfiles="$tmpfiles xg-a-1.po"
+tmpfiles="$tmpfiles xg-a-1.tmp.po xg-a-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-a-1 xg-a-1.awk
+  -d xg-a-1.tmp xg-a-1.awk
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-a-1.tmp.po > xg-a-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-a-1.ok"
index 212989c2448206251e6dac331659754039ac3827..f1a7e4138b99fa6f7cd4d27df6e9ddb2ce60550d 100755 (executable)
@@ -7,11 +7,13 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
-tmpfiles="$tmpfiles xg-c-1.po"
+tmpfiles="$tmpfiles xg-c-1.tmp.po xg-c-1.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -d xg-c-1 -k_ --omit-header --no-location \
+${XGETTEXT} -d xg-c-1.tmp -k_ --omit-header --no-location \
  $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 : ${DIFF=diff}
 ${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po
index 7f78a20d6c08a11881b4aec074aceef33957d95f..d21ae99c35a5237736f3867090fd6e772533bdbb 100755 (executable)
@@ -16,11 +16,13 @@ print (tr ("file"));
 print (tr ("open", "File"));
 EOF
 
-tmpfiles="$tmpfiles xg-c-10.po"
+tmpfiles="$tmpfiles xg-c-10.tmp.po xg-c-10.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location \
   --keyword=i18n:1 --keyword=i18n:1c,2 --keyword=tr:1 --keyword=tr:1,2c \
-  -d xg-c-10 xg-c-10.c
+  -d xg-c-10.tmp xg-c-10.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-10.tmp.po > xg-c-10.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-10.ok"
index 9f2790c92761ab5070923f59f896abcbdcb05b10..b1ff28b81f8afac5c8a6e20ad1576bae4caeb61b 100755 (executable)
@@ -16,11 +16,13 @@ print (i18n ("Help", "about"));
 print (i18n ("error", "errors", 7));
 EOF
 
-tmpfiles="$tmpfiles xg-c-11.po"
+tmpfiles="$tmpfiles xg-c-11.tmp.po xg-c-11.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location \
   --keyword=i18n:1 --keyword=i18n:1c,2,2t --keyword=i18n:1,2,3t \
-  -d xg-c-11 xg-c-11.c
+  -d xg-c-11.tmp xg-c-11.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-11.tmp.po > xg-c-11.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-11.ok"
index e8bb389907956a3c6408a825e9242f57b83c3cc9..696eaeeae60f3db85cd5e4d8bac7851351801050 100755 (executable)
@@ -11,9 +11,11 @@ cat <<\EOF > xg-c-12.c
 gettext ("%1% on, %2% off");
 EOF
 
-tmpfiles="$tmpfiles xg-c-12.po"
+tmpfiles="$tmpfiles xg-c-12.tmp.po xg-c-12.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-c-12 xg-c-12.c
+${XGETTEXT} --omit-header --no-location -d xg-c-12.tmp xg-c-12.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-12.tmp.po > xg-c-12.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-12.ok"
index ddf9d310dd4cf95934241d5c8403d0bc5a04479d..805b24698462f3a95a52c7a2ac7a3cf480c90230 100755 (executable)
@@ -10,12 +10,14 @@ cat <<\EOF > xg-c-13.cc
 foo (gettext ("on"));
 EOF
 
-tmpfiles="$tmpfiles xg-c-13.po"
+tmpfiles="$tmpfiles xg-c-13.tmp.po xg-c-13.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-c-13 \
+${XGETTEXT} --omit-header --no-location -d xg-c-13.tmp \
   --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format --qt \
   xg-c-13.cc
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-13.tmp.po > xg-c-13.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-13.ok"
 cat <<EOF > xg-c-13.ok
index 05ad5fd89174075fe7bf370a6a01e7ba56b61865..485a471075d32a9ddb3eabb4458a0a663a88383c 100755 (executable)
@@ -19,9 +19,11 @@ gettext("heuristic %|1$| on, %|2$| off");
 gettext("heuristic %1% on, %2% off");
 EOF
 
-tmpfiles="$tmpfiles xg-c-14.po"
+tmpfiles="$tmpfiles xg-c-14.tmp.po xg-c-14.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-c-14 --boost xg-c-14.cc
+${XGETTEXT} --omit-header --no-location -d xg-c-14.tmp --boost xg-c-14.cc
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-14.tmp.po > xg-c-14.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 # The first 4 are not marked as c-format, because they are known as
index 46db63a9acb8cd88e5188f971fb73242ec468c0a..a8d874e588a4ceda4e1e896e395e7ca15c8a2997 100755 (executable)
@@ -13,11 +13,13 @@ print (Q_ ("Printer|Open"));
 print (Q_ ("Menu|Recent File", "Menu|Recent Files"));
 EOF
 
-tmpfiles="$tmpfiles xg-c-15.po"
+tmpfiles="$tmpfiles xg-c-15.tmp.po xg-c-15.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location \
   --keyword=Q_:1g --keyword=Q_:1g,2g \
-  -d xg-c-15 xg-c-15.c
+  -d xg-c-15.tmp xg-c-15.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-15.tmp.po > xg-c-15.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-15.ok"
index 5bbf0569786ec34aa468933bf2bef04bd18729ba..53adfc63ae5269b1977a73bf749089d512c3217a 100755 (executable)
@@ -20,9 +20,11 @@ _
 )
 EOF
 
-tmpfiles="$tmpfiles xg-c-2.po"
+tmpfiles="$tmpfiles xg-c-2.tmp.po xg-c-2.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -d xg-c-2 -k_ --omit-header --no-location xg-c-2.in.c
+${XGETTEXT} -d xg-c-2.tmp -k_ --omit-header --no-location xg-c-2.in.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-2.tmp.po > xg-c-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-2.ok"
index 36e82e1462ab1e99c69a5ae63351bb461e726651..bc6d69afd37c2e9353bbba0cc04147ec62903b8f 100755 (executable)
@@ -13,9 +13,11 @@ main(){printf(gettext("Hello, World!\n"));}
 gettext("nothing");
 EOF
 
-tmpfiles="$tmpfiles xg-c-3.po"
+tmpfiles="$tmpfiles xg-c-3.tmp.po xg-c-3.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --add-location -d xg-c-3 xg-c-3.in.c
+${XGETTEXT} --omit-header --add-location -d xg-c-3.tmp xg-c-3.in.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-3.tmp.po > xg-c-3.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-3.ok"
index 0f216d4d08a4647af38681f26d19cb1f18ef2024..290fb32fca3b25a8b562b5dd6eccfe23a19a3b54 100755 (executable)
@@ -10,9 +10,11 @@ cat <<EOF > xg-c-4.in.c
 main()??<printf(gettext("Hello, " "World!" "??/n")); ??>
 EOF
 
-tmpfiles="$tmpfiles xg-c-4.po"
+tmpfiles="$tmpfiles xg-c-4.tmp.po xg-c-4.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location --trigraphs -d xg-c-4 xg-c-4.in.c
+${XGETTEXT} --omit-header --no-location --trigraphs -d xg-c-4.tmp xg-c-4.in.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-4.tmp.po > xg-c-4.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-4.ok"
index 38e1f2553e497c61019019c53e4947db0c9fcb18..c5106c4bd6dd1721734a4273e125c8788337f5d8 100755 (executable)
@@ -10,9 +10,11 @@ cat <<EOF > xg-c-5.in.cc
 main(){printf(gettext/*puke*/(/*barf*/"Hello, " "World!" "\n")); }
 EOF
 
-tmpfiles="$tmpfiles xg-c-5.po"
+tmpfiles="$tmpfiles xg-c-5.tmp.po xg-c-5.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-5 xg-c-5.in.cc
+${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-5.tmp xg-c-5.in.cc
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-5.tmp.po > xg-c-5.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-5.ok"
index b31b8c5897808728664dd149d114d50b109ee0f6..6c4acb9d6b911af8f03a93f1c30e3946d19f7fa9 100755 (executable)
@@ -20,10 +20,12 @@ dcgettext ("foo", "quick", LC_MESSAGES);
 dgettext ("bar", "!");
 EOF
 
-tmpfiles="$tmpfiles xg-c-6.po"
+tmpfiles="$tmpfiles xg-c-6.tmp.po xg-c-6.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=XXX \
-  -d xg-c-6 xg-c-6.in.C
+  -d xg-c-6.tmp xg-c-6.in.C
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-6.tmp.po > xg-c-6.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-6.ok"
index 3992bc597232540de1c480e76d44b10322e9bc31..d8d36114306713ac676576baa789ed4de19ae241 100755 (executable)
@@ -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"
index 9bef7cc1038a3ea2ac5472e4330dd71c9146b205..191002f946fd23a1f045c8251d9c9362861782d5 100755 (executable)
@@ -16,9 +16,11 @@ void foo ()
 }
 EOF
 
-tmpfiles="$tmpfiles xg-c-8.po"
+tmpfiles="$tmpfiles xg-c-8.tmp xg-c-8.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -k_ -o xg-c-8.po xg-c-8.c
+${XGETTEXT} --omit-header --no-location -k_ -o xg-c-8.tmp xg-c-8.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-8.tmp > xg-c-8.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-8.ok"
index ebc804b545bed970112ca527fff6d7bcbe22097e..bef34aa02f3db73061e43ac02c319aaedbc2ef70 100755 (executable)
@@ -23,10 +23,12 @@ print (gettext ("there is not enough"
 "verbose string"));
 EOF
 
-tmpfiles="$tmpfiles xg-c-9.po"
+tmpfiles="$tmpfiles xg-c-9.tmp.po xg-c-9.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-c-9 xg-c-9.c
+  -d xg-c-9.tmp xg-c-9.c
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-c-9.tmp.po > xg-c-9.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-c-9.ok"
index 84b5d96041d4a7d39b6348cb29036ba416bc8193..bed1b73650d9de33d1bf153570da1a0ee6a80beb 100755 (executable)
@@ -29,9 +29,11 @@ class TestCase {
 }
 EOF
 
-tmpfiles="$tmpfiles xg-cs-1.po"
+tmpfiles="$tmpfiles xg-cs-1.tmp.po xg-cs-1.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -c -d xg-cs-1 xg-cs-1.cs
+${XGETTEXT} --omit-header --no-location -c -d xg-cs-1.tmp xg-cs-1.cs
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-cs-1.tmp.po > xg-cs-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-cs-1.ok"
index 8189fd713730caf39a78060a9feb9b3db02c6e9c..2a03a6ad228f77cb11f5239f56bcfc62338fbd1f 100755 (executable)
@@ -15,9 +15,12 @@ class TestCase {
 }
 EOF
 
-tmpfiles="$tmpfiles xg-cs-4.po"
+tmpfiles="$tmpfiles xg-cs-4.tmp.po xg-cs-4.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location --keyword=MyPluralString:2,3 -d xg-cs-4 xg-cs-4.cs
+${XGETTEXT} --omit-header --no-location --keyword=MyPluralString:2,3 \
+  -d xg-cs-4.tmp xg-cs-4.cs
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-cs-4.tmp.po > xg-cs-4.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-cs-4.ok"
index 007b9e61f18d10c66a837bb88d555c9afcb71d58..42806f188b33e663c43d93051cad3ae0dac788fd 100755 (executable)
@@ -23,10 +23,12 @@ Console.WriteLine(GetString("there is not enough" +
 + "verbose string"));
 EOF
 
-tmpfiles="$tmpfiles xg-cs-5.po"
+tmpfiles="$tmpfiles xg-cs-5.tmp.po xg-cs-5.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-cs-5 xg-cs-5.cs
+  -d xg-cs-5.tmp xg-cs-5.cs
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-cs-5.tmp.po > xg-cs-5.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-cs-5.ok"
index a78617f776aa6815a1ec09a9e59e238cda230f87..317cd70578fb0738b9223e49e84861602f3d8680 100755 (executable)
@@ -18,10 +18,12 @@ cat <<EOF > xg-el-1.el
 (princ (_ "The Fabulous Four"))
 EOF
 
-tmpfiles="$tmpfiles xg-el-1.po"
+tmpfiles="$tmpfiles xg-el-1.tmp.po xg-el-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-el-1 xg-el-1.el
+  -d xg-el-1.tmp xg-el-1.el
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-el-1.tmp.po > xg-el-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-el-1.ok"
index cd7f12ec79f8bc107ccac45695f31c8cd868e305..8ce86e4b141a27c62ac552a3fbc2fcbc5c27fb83 100755 (executable)
@@ -31,9 +31,11 @@ class TestCase {
 }
 EOF
 
-tmpfiles="$tmpfiles xg-j-1.po"
+tmpfiles="$tmpfiles xg-j-1.tmp.po xg-j-1.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -c -d xg-j-1 xg-j-1.java
+${XGETTEXT} --omit-header --no-location -c -d xg-j-1.tmp xg-j-1.java
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-j-1.tmp.po > xg-j-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-j-1.ok"
index d54a83d7b8353efff75150314d4febc35dd483de..1d1a543f1e319ab12fb488d76617c7413838e33f 100755 (executable)
@@ -16,9 +16,11 @@ class TestCase {
 }
 EOF
 
-tmpfiles="$tmpfiles xg-j-3.po"
+tmpfiles="$tmpfiles xg-j-3.tmp.po xg-j-3.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-j-3 xg-j-3.java
+${XGETTEXT} --omit-header --no-location -d xg-j-3.tmp xg-j-3.java
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-j-3.tmp.po > xg-j-3.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-j-3.ok"
index 6b47e66b8b92aea3bc776a8a04785bafa7583219..931cbfffd7a072f799812747aa3d590441af61cc 100755 (executable)
@@ -16,9 +16,12 @@ class TestCase {
 }
 EOF
 
-tmpfiles="$tmpfiles xg-j-4.po"
+tmpfiles="$tmpfiles xg-j-4.tmp.po xg-j-4.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location --keyword=ngettext:2,3 -d xg-j-4 xg-j-4.java
+${XGETTEXT} --omit-header --no-location --keyword=ngettext:2,3 \
+  -d xg-j-4.tmp xg-j-4.java
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-j-4.tmp.po > xg-j-4.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-j-4.ok"
index f391223a061d4cf583110c0d7b5054a9e83e7ea0..80382df7f6e478b01a5267521d23eb86e2130da0 100755 (executable)
@@ -23,10 +23,12 @@ System.out.println(gettext("there is not enough" +
 + "verbose string"));
 EOF
 
-tmpfiles="$tmpfiles xg-j-5.po"
+tmpfiles="$tmpfiles xg-j-5.tmp.po xg-j-5.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-j-5 xg-j-5.java
+  -d xg-j-5.tmp xg-j-5.java
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-j-5.tmp.po > xg-j-5.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-j-5.ok"
index 25911d4836ca50eed33e2ba3db8f1138cfd7a93e..874041b1260167744a2a43e983704db1d74bcef0 100755 (executable)
@@ -19,10 +19,12 @@ cat <<EOF > xg-lr-1.jl
 (princ (_ "The Fabulous Four"))
 EOF
 
-tmpfiles="$tmpfiles xg-lr-1.po"
+tmpfiles="$tmpfiles xg-lr-1.tmp.po xg-lr-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-lr-1 xg-lr-1.jl
+  -d xg-lr-1.tmp xg-lr-1.jl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-lr-1.tmp.po > xg-lr-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-lr-1.ok"
index aab7c2697e2c687b0f2868fa5f78d18e8ea0aad7..ca7964682c670c0f316f594422279681fcfca54d 100755 (executable)
@@ -19,10 +19,12 @@ cat <<EOF > xg-ls-1.lisp
 (write-line (gettext "The Fabulous Four"))
 EOF
 
-tmpfiles="$tmpfiles xg-ls-1.po"
+tmpfiles="$tmpfiles xg-ls-1.tmp.po xg-ls-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-ls-1 xg-ls-1.lisp
+  -d xg-ls-1.tmp xg-ls-1.lisp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-ls-1.tmp.po > xg-ls-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-ls-1.ok"
index 8ed381dcfa6ecd893a739e4f404e2df6b63f2b80..9a5e122719ea53eb09d50dc23f18913de021566f 100755 (executable)
@@ -28,9 +28,11 @@ _ // test
 NSLocalizedString(@"Information", @"")
 EOF
 
-tmpfiles="$tmpfiles xg-ob-1.po"
+tmpfiles="$tmpfiles xg-ob-1.tmp.po xg-ob-1.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header -k_ -kNSLocalizedString -d xg-ob-1 xg-ob-1.m
+${XGETTEXT} --omit-header -k_ -kNSLocalizedString -d xg-ob-1.tmp xg-ob-1.m
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-ob-1.tmp.po > xg-ob-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-ob-1.ok"
index 3d6c7b25000149cd73dd1001bebac7139a84cef1..3c2f9ff1d628665c8106b5e690299fe98995f5a6 100755 (executable)
@@ -27,10 +27,12 @@ print (NSLocalizedString (@ "there is not enough"
 @ "verbose string"));
 EOF
 
-tmpfiles="$tmpfiles xg-ob-2.po"
+tmpfiles="$tmpfiles xg-ob-2.tmp.po xg-ob-2.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-ob-2 xg-ob-2.m
+  -d xg-ob-2.tmp xg-ob-2.m
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-ob-2.tmp.po > xg-ob-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-ob-2.ok"
index 190d231b357a57441a7498bde9257f2eff1b4caa..eb7b3741e510fa3127963e9f4acd8a8674550134 100755 (executable)
@@ -148,13 +148,15 @@ __END__
 gettext "Discarded!";
 EOF
 
-tmpfiles="$tmpfiles xg-pl-1.po"
+tmpfiles="$tmpfiles xg-pl-1.tmp.po xg-pl-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header -n \
   -k_ --flag=_:1:pass-perl-format --flag=_:1:pass-perl-brace-format \
   -k%__ --flag=%__:1:pass-perl-format --flag=%__:1:pass-perl-brace-format \
   -k\$__ --flag=\$__:1:pass-perl-format --flag=\$__:1:pass-perl-brace-format \
-  -d xg-pl-1 xg-pl-1.pl
+  -d xg-pl-1.tmp xg-pl-1.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-pl-1.tmp.po > xg-pl-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-pl-1.ok"
index 2dae75cdacbc206629314ced239da03512ce49ab..2429d6cef86ff65c634160e66a4972cf32cf2947 100755 (executable)
@@ -57,10 +57,12 @@ print "\U\x70\LO\154\x{69}\x{004E}a \Q\lRu\LLeS\E\041\n";
 #      "\x{430}\x{447}\x{43a}\x{430}\n";
 EOPERL
 
-tmpfiles="$tmpfiles xg-pl-4.pot"
+tmpfiles="$tmpfiles xg-pl-4.tmp.pot xg-pl-4.pot"
 : ${XGETTEXT=xgettext}
 LC_MESSAGES=C LC_ALL= \
-${XGETTEXT} -a --omit-header --no-location -o xg-pl-4.pot xg-pl-4.pl
+${XGETTEXT} -a --omit-header --no-location -o xg-pl-4.tmp.pot xg-pl-4.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-pl-4.tmp.pot > xg-pl-4.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-pl-4.ok"
index c701d76fedaeb385f565e9f6eab8ab7243adb395..7e5e8ad171772ed006c3753976a873ca48b35d4f 100755 (executable)
@@ -18,10 +18,12 @@ print gettext "Hey Jude";
 print gettext "The Fabulous Four";
 EOF
 
-tmpfiles="$tmpfiles xg-pl-5.po"
+tmpfiles="$tmpfiles xg-pl-5.tmp.po xg-pl-5.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-pl-5 xg-pl-5.pl
+  -d xg-pl-5.tmp xg-pl-5.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-pl-5.tmp.po > xg-pl-5.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-pl-5.ok"
index 8e9e203441de5ee337f5f5f6e8d308fc26efc3bc..cf3f9a43348b720b7327bf85fc9232fa35408c2d 100755 (executable)
@@ -66,10 +66,12 @@ print dgettext foo (17), "extracted15";
 print dgettext foo 17, "extracted16";
 EOPERL
 
-tmpfiles="$tmpfiles xg-pl-6.pot"
+tmpfiles="$tmpfiles xg-pl-6.tmp xg-pl-6.pot"
 : ${XGETTEXT=xgettext}
 LC_MESSAGES=C LC_ALL= \
-${XGETTEXT} --omit-header --no-location -o xg-pl-6.pot xg-pl-6.pl
+${XGETTEXT} --omit-header --no-location -o xg-pl-6.tmp xg-pl-6.pl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-pl-6.tmp > xg-pl-6.pot
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-pl-6.ok"
index e143cd96db51acc5e002c750f11d1ce4850a7d55..34528a0556ccece8a00ed68cd512845e3a612ccc 100755 (executable)
@@ -25,10 +25,12 @@ echo _(table["key"]);
 ?>
 EOF
 
-tmpfiles="$tmpfiles xg-ph-1.po"
+tmpfiles="$tmpfiles xg-ph-1.tmp.po xg-ph-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-ph-1 xg-ph-1.php
+  -d xg-ph-1.tmp xg-ph-1.php
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-ph-1.tmp.po > xg-ph-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-ph-1.ok"
index 7610b85afd5d4370d27debafbb6ffc7a7f5ecd55..abb6ba900df5700a872891ca563c714de0ec5042 100755 (executable)
@@ -42,9 +42,11 @@ echo _("Franks");
 ?>
 EOF
 
-tmpfiles="$tmpfiles xg-ph-2.po"
+tmpfiles="$tmpfiles xg-ph-2.tmp.po xg-ph-2.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-ph-2 xg-ph-2.php
+${XGETTEXT} --omit-header --no-location -d xg-ph-2.tmp xg-ph-2.php
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-ph-2.tmp.po > xg-ph-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-ph-2.ok"
index 0b0fc6905f6af16eb66d63c4ce871d1756972f9a..37b0b80303a4919fbc116b71e143a6e6dcf92746 100755 (executable)
@@ -45,10 +45,12 @@ main (int argc, char *argv[])
 }
 EOF
 
-tmpfiles="$tmpfiles xg-po-1.po"
+tmpfiles="$tmpfiles xg-po-1.tmp.po xg-po-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header -n \
-  -d xg-po-1 xg-po-1.in.po xg-po-1.c xg-po-1.cc
+  -d xg-po-1.tmp xg-po-1.in.po xg-po-1.c xg-po-1.cc
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-po-1.tmp.po > xg-po-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-po-1.ok"
index 63a6cd40ee34905af87dfc890baef6d537c3d3fb..05736062d7561075b59b9318b0e54e5ca3ea7a18 100755 (executable)
@@ -42,10 +42,12 @@ main (int argc, char *argv[])
 }
 EOF
 
-tmpfiles="$tmpfiles xg-pr-1.po"
+tmpfiles="$tmpfiles xg-pr-1.tmp.po xg-pr-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header -n \
-  -d xg-pr-1 xg-pr-1.in.properties xg-pr-1.c xg-pr-1.cc
+  -d xg-pr-1.tmp xg-pr-1.in.properties xg-pr-1.c xg-pr-1.cc
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-pr-1.tmp.po > xg-pr-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-pr-1.ok"
index 78b3066ea1bb0e6357d658efe822874e1d42abac..b9538a0cd76031f5d531a921da40da542cc1a32b 100755 (executable)
@@ -22,10 +22,12 @@ print gettext.gettext("there is not enough"
 "verbose string")
 EOF
 
-tmpfiles="$tmpfiles xg-py-2.po"
+tmpfiles="$tmpfiles xg-py-2.tmp.po xg-py-2.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-py-2 xg-py-2.py
+  -d xg-py-2.tmp xg-py-2.py
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-py-2.tmp.po > xg-py-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-py-2.ok"
index e1795269f12a410869140cb0fb139fa52583be2e..e33c01385db34d04793688ede387b62e84951ebf 100755 (executable)
@@ -16,10 +16,12 @@ cat <<EOF > xg-sc-1.scm
 (display (_ "The Fabulous Four"))
 EOF
 
-tmpfiles="$tmpfiles xg-sc-1.po"
+tmpfiles="$tmpfiles xg-sc-1.tmp.po xg-sc-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} -k_ --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-sc-1 xg-sc-1.scm
+  -d xg-sc-1.tmp xg-sc-1.scm
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sc-1.tmp.po > xg-sc-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sc-1.ok"
index a1c2863599a3cfd6155509f8a4a350b523ba1f11..ac3e5cf8a48d62cad97774ae5cbeb957488bf8f0 100755 (executable)
@@ -464,11 +464,13 @@ echo "`echo "\`ngettext 'depth_2_11_squote_7_semi \\\\\\\;'\`"`"
 echo "`echo "\`ngettext 'depth_2_11_squote_8_semi \\\\\\\\;'\`"`"
 EOF
 
-tmpfiles="$tmpfiles xg-sh-1.po"
+tmpfiles="$tmpfiles xg-sh-1.tmp.po xg-sh-1.po"
 : ${XGETTEXT=xgettext}
 # Here we use ngettext with two signatures: ngettext:1 and ngettext:1,2.
 ${XGETTEXT} --omit-header --no-location --keyword=ngettext:1 \
-  -d xg-sh-1 xg-sh-1.sh
+  -d xg-sh-1.tmp xg-sh-1.sh
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sh-1.tmp.po > xg-sh-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sh-1.ok"
index fb9cf12bb980f21a5992769b886cbc42d42da1d0..09cbc51e81029da75933e7d854da49dd4c57a519 100755 (executable)
@@ -18,10 +18,12 @@ gettext "Hey Jude"
 gettext "The Fabulous Four"
 EOF
 
-tmpfiles="$tmpfiles xg-sh-2.po"
+tmpfiles="$tmpfiles xg-sh-2.tmp.po xg-sh-2.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-sh-2 xg-sh-2.sh
+  -d xg-sh-2.tmp xg-sh-2.sh
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sh-2.tmp.po > xg-sh-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sh-2.ok"
index 4af390f5d4c125ec893581a42ceeed036af37934..6f304a1712e98262e77033dbc98cb87df11b225a 100755 (executable)
@@ -10,9 +10,11 @@ cat <<\EOF > xg-sh-3.sh
 echo `gettext 'abc\"def'`
 EOF
 
-tmpfiles="$tmpfiles xg-sh-3.po"
+tmpfiles="$tmpfiles xg-sh-3.tmp.po xg-sh-3.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-sh-3 xg-sh-3.sh
+${XGETTEXT} --omit-header --no-location -d xg-sh-3.tmp xg-sh-3.sh
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sh-3.tmp.po > xg-sh-3.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sh-3.ok"
index 1bb467ba51d886aabb6d888965f80fced35bb84e..a94d9309526de32ec6ddf8f2b8fcfe382a88e94c 100755 (executable)
@@ -116,10 +116,12 @@ echo "`echo "\`echo $"depth_2_11_bashquote_7_\\\\\\\$var"\`"`"
 echo "`echo "\`echo $"depth_2_11_bashquote_8_\\\\\\\\$var"\`"`"
 EOF
 
-tmpfiles="$tmpfiles xg-sh-4.err xg-sh-4.po"
+tmpfiles="$tmpfiles xg-sh-4.err xg-sh-4.tmp.po xg-sh-4.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-sh-4 xg-sh-4.sh 2>xg-sh-4.err
+${XGETTEXT} --omit-header --no-location -d xg-sh-4.tmp xg-sh-4.sh 2>xg-sh-4.err
 test $? = 0 || { cat xg-sh-4.err; rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sh-4.tmp.po > xg-sh-4.po
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sh-4.ok"
 cat <<\EOF > xg-sh-4.ok
index de5c9542fc27e17d4a56b42bfc540fc99295d401..11b250609fd48b7baa3efe69d1d0b4bd566704e0 100755 (executable)
@@ -17,9 +17,11 @@ echo $(gettext "Simple decorated dstring: \"x\" \\\"y\\\"")
 echo "$(gettext "Simple decorated dstring: \"x\" \\\"y\\\" inside double-quotes")"
 EOF
 
-tmpfiles="$tmpfiles xg-sh-5.po"
+tmpfiles="$tmpfiles xg-sh-5.tmp.po xg-sh-5.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-sh-5 xg-sh-5.sh
+${XGETTEXT} --omit-header --no-location -d xg-sh-5.tmp xg-sh-5.sh
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-sh-5.tmp.po > xg-sh-5.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-sh-5.ok"
index b2e4bdff70e853227001a4fdeb6feefc3eba533f..e7416718eddfbdf90eb7635afddbb7cf196ad24c 100755 (executable)
@@ -19,10 +19,12 @@ Transcript showCr: (NLS ? 'Hey Jude').
 Transcript showCr: (NLS ? 'The Fabulous Four').
 EOF
 
-tmpfiles="$tmpfiles xg-st-1.po"
+tmpfiles="$tmpfiles xg-st-1.tmp.po xg-st-1.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-st-1 xg-st-1.st
+  -d xg-st-1.tmp xg-st-1.st
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-st-1.tmp.po > xg-st-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-st-1.ok"
index a209c919725496b802e33d18ab9a324f3b137580..5ec8a02b7e371e3dac5d3092885f49f518369cb1 100755 (executable)
@@ -18,10 +18,12 @@ puts [_ "Hey Jude"]
 puts [_ "The Fabulous Four"]
 EOF
 
-tmpfiles="$tmpfiles xg-t-2.po"
+tmpfiles="$tmpfiles xg-t-2.tmp.po xg-t-2.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: -k_ \
-  -d xg-t-2 xg-t-2.tcl
+  -d xg-t-2.tmp xg-t-2.tcl
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-t-2.tmp.po > xg-t-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-t-2.ok"
index 0ad3e226a36db4c9c549fe3bb5cb560bcaf2f659..b9c3d3495d14b3933563f5a4db699287898f107f 100755 (executable)
@@ -11,9 +11,11 @@ cat <<EOF > xg-y-1.ycp
 title = sformat (_("%1 package", "%1 packages", num), num);
 EOF
 
-tmpfiles="$tmpfiles xg-y-1.po"
+tmpfiles="$tmpfiles xg-y-1.tmp.po xg-y-1.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -k:1,2 -d xg-y-1 xg-y-1.ycp
+${XGETTEXT} --omit-header --no-location -k:1,2 -d xg-y-1.tmp xg-y-1.ycp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-y-1.tmp.po > xg-y-1.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-y-1.ok"
index 279035cb20ac04994789eb54a131110c69098bce..0a4d6816f88719dd72b71d2a638328fba830a186 100755 (executable)
@@ -21,10 +21,12 @@ print (_("Hey Jude"));
 print (_("The Fabulous Four"));
 EOF
 
-tmpfiles="$tmpfiles xg-y-2.po"
+tmpfiles="$tmpfiles xg-y-2.tmp.po xg-y-2.po"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
-  -d xg-y-2 xg-y-2.ycp
+  -d xg-y-2.tmp xg-y-2.ycp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-y-2.ok"
index 51a7feb3d00494512ce5d5ae75e4f8bb0636f8dc..ea3814cb7bc88d4fbf11209509bebcdb5b6c94c3 100755 (executable)
@@ -13,9 +13,11 @@ print (_("John\n"
 "Ringo"));
 EOF
 
-tmpfiles="$tmpfiles xg-y-3.po"
+tmpfiles="$tmpfiles xg-y-3.tmp.po xg-y-3.po"
 : ${XGETTEXT=xgettext}
-${XGETTEXT} --omit-header --no-location -d xg-y-3 xg-y-3.ycp
+${XGETTEXT} --omit-header --no-location -d xg-y-3.tmp xg-y-3.ycp
+test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+tr -d '\r' < xg-y-3.tmp.po > xg-y-3.po
 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles xg-y-3.ok"