diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-12-24 07:38:37 +0000 |
---|---|---|
committer | <> | 2015-02-02 12:02:29 +0000 |
commit | 482840e61f86ca321838a91e902c41d40c098bbb (patch) | |
tree | 01ea2e242fd2792d19fe192476601587901db794 /gettext-tools/tests/xgettext-elisp-2 | |
download | gettext-tarball-482840e61f86ca321838a91e902c41d40c098bbb.tar.gz |
Imported from /home/lorry/working-area/delta_gettext-tarball/gettext-0.19.4.tar.xz.gettext-0.19.4
Diffstat (limited to 'gettext-tools/tests/xgettext-elisp-2')
-rwxr-xr-x | gettext-tools/tests/xgettext-elisp-2 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-elisp-2 b/gettext-tools/tests/xgettext-elisp-2 new file mode 100755 index 0000000..22c472e --- /dev/null +++ b/gettext-tools/tests/xgettext-elisp-2 @@ -0,0 +1,34 @@ +#!/bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src + +# Test EmacsLisp support: --add-comments option. + +cat <<\EOF > xg-el-2.el +; a +(setq string ; b +; c +(_ ; d +"hello world" ; e +; f +)) +EOF + +: ${XGETTEXT=xgettext} +${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ + -d xg-el-2.tmp xg-el-2.el || exit 1 +LC_ALL=C tr -d '\r' < xg-el-2.tmp.po > xg-el-2.po || exit 1 + +cat <<EOF > xg-el-2.ok +#. a +#. b +#. c +#. d +msgid "hello world" +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-el-2.ok xg-el-2.po +result=$? + +exit $result |