diff options
author | Ulrich Drepper <drepper@cygnus.com> | 2000-06-16 07:49:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@cygnus.com> | 2000-06-16 07:49:23 +0000 |
commit | 60d2084de5dc3b65e6657f695f0f26df24b0f565 (patch) | |
tree | 224f21c30351570d6d7f06a385e829d5ab320f67 /tests/msgmerge-5 | |
download | external_gettext-60d2084de5dc3b65e6657f695f0f26df24b0f565.zip external_gettext-60d2084de5dc3b65e6657f695f0f26df24b0f565.tar.gz external_gettext-60d2084de5dc3b65e6657f695f0f26df24b0f565.tar.bz2 |
Initial revision
Diffstat (limited to 'tests/msgmerge-5')
-rwxr-xr-x | tests/msgmerge-5 | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/tests/msgmerge-5 b/tests/msgmerge-5 new file mode 100755 index 0000000..45cca00 --- /dev/null +++ b/tests/msgmerge-5 @@ -0,0 +1,83 @@ +#! /bin/sh + +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="mm-test5.in1.po mm-test5.in2.po" +cat <<EOF > mm-test5.in1.po +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Content-Transfer-Encoding: ENCODING\n" +"MIME-Version: 1.0\n" +"Test: bla bla\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Project-Id-Version: PACKAGE VERSION\n" + +msgid "" +"whatever, doesn't matter\n" +msgstr "" +"blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n" +EOF + +cat <<EOF > mm-test5.in2.po +msgid "" +msgstr "" + +msgid "" +"whatever, doesn't matter\n" +msgstr "" +"blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla bla\n" +EOF + +tmpfiles="$tmpfiles mm-test5.out" +: ${MSGMERGE=msgmerge} +${MSGMERGE} -q mm-test5.in1.po mm-test5.in2.po -o mm-test5.out + +tmpfiles="$tmpfiles mm-test5.ok" +cat <<EOF > mm-test5.ok +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: ENCODING\n" +"Test: bla bla\n" + +msgid "whatever, doesn't matter\n" +msgstr "" +"blah blah blah blah blah blah blah blah blah blah blah blah blah bla bla " +"bla\n" +EOF + +: ${DIFF=diff} +${DIFF} mm-test5.ok mm-test5.out +result=$? + +rm -fr $tmpfiles + +exit $result + +# Preserve executable bits for this shell script. +# Thanks to Noah Friedman for this great trick. +Local Variables: +eval:(defun frobme () (set-file-modes buffer-file-name file-mode)) +eval:(make-local-variable 'file-mode) +eval:(setq file-mode (file-modes (buffer-file-name))) +eval:(make-local-variable 'after-save-hook) +eval:(add-hook 'after-save-hook 'frobme) +End: |