diff options
author | Bruno Haible <bruno@clisp.org> | 2007-05-14 23:06:31 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:48 +0200 |
commit | ea6f5e58fccbdb7c52038b045ffd8334cbc9839e (patch) | |
tree | c10b9eb2d90e6ed4a88c718f5c21a27c3e6a294a /gettext-tools/tests/lang-elisp | |
parent | 8cab443cf22ac7ca0c2158436ec55f275753a128 (diff) | |
download | external_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.zip external_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.tar.gz external_gettext-ea6f5e58fccbdb7c52038b045ffd8334cbc9839e.tar.bz2 |
Convert CR/LF to LF.
Diffstat (limited to 'gettext-tools/tests/lang-elisp')
-rwxr-xr-x | gettext-tools/tests/lang-elisp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gettext-tools/tests/lang-elisp b/gettext-tools/tests/lang-elisp index c8a50b9..d63c349 100755 --- a/gettext-tools/tests/lang-elisp +++ b/gettext-tools/tests/lang-elisp @@ -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 |