+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ Avoid test suite failures on mingw.
+ * msgexec-1: Don't produce CR/LFs in the per-message command script.
+ * msgexec-3: Likewise.
+ * msgexec-4: Likewise.
+
2008-09-28 Bruno Haible <bruno@clisp.org>
Avoid test suite failures on mingw.
tmpfiles="$tmpfiles mex-test1.sh"
cat <<\EOF > mex-test1.sh
#! /bin/sh
-echo "========================= $MSGEXEC_LOCATION ========================="
+echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
cat <<MEOF
$MSGEXEC_MSGID
---
MEOF
cat
-echo
+echo | LC_ALL=C tr -d '\r'
exit 0
EOF
chmod a+x mex-test1.sh
tmpfiles="$tmpfiles mex-test3.sh"
cat <<\EOF > mex-test3.sh
#! /bin/sh
-echo "========================= $MSGEXEC_LOCATION ========================="
+echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
cat <<MEOF
$MSGEXEC_MSGID
---
MEOF
cat
-echo
+echo | LC_ALL=C tr -d '\r'
exit 0
EOF
chmod a+x mex-test3.sh
tmpfiles="$tmpfiles mex-test4.sh"
cat <<\EOF > mex-test4.sh
#! /bin/sh
-echo "========================= $MSGEXEC_LOCATION ========================="
+echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
if test -n "${MSGEXEC_MSGCTXT+set}"; then
- echo "context: $MSGEXEC_MSGCTXT"
+ echo "context: $MSGEXEC_MSGCTXT" | LC_ALL=C tr -d '\r'
fi
cat <<MEOF
$MSGEXEC_MSGID
---
MEOF
cat
-echo
+echo | LC_ALL=C tr -d '\r'
exit 0
EOF
chmod a+x mex-test4.sh