summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-sh-4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-05-14 23:06:31 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:48 +0200
commitea6f5e58fccbdb7c52038b045ffd8334cbc9839e (patch)
treec10b9eb2d90e6ed4a88c718f5c21a27c3e6a294a /gettext-tools/tests/xgettext-sh-4
parent8cab443cf22ac7ca0c2158436ec55f275753a128 (diff)
downloadexternal_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.zip
external_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.tar.gz
external_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.tar.bz2
Convert CR/LF to LF.
Diffstat (limited to 'gettext-tools/tests/xgettext-sh-4')
-rwxr-xr-xgettext-tools/tests/xgettext-sh-46
1 files changed, 4 insertions, 2 deletions
diff --git a/gettext-tools/tests/xgettext-sh-4 b/gettext-tools/tests/xgettext-sh-4
index 1bb467b..a94d930 100755
--- a/gettext-tools/tests/xgettext-sh-4
+++ b/gettext-tools/tests/xgettext-sh-4
@@ -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