From c640c85f7a86c5d9fdae087c82e6de3eb3994498 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 3 Nov 2003 21:16:40 +0000 Subject: Move xgettext-14 to xgettext-4. --- gettext-tools/tests/xgettext-14 | 47 ----------------------------------------- gettext-tools/tests/xgettext-4 | 47 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 47 deletions(-) delete mode 100755 gettext-tools/tests/xgettext-14 create mode 100755 gettext-tools/tests/xgettext-4 diff --git a/gettext-tools/tests/xgettext-14 b/gettext-tools/tests/xgettext-14 deleted file mode 100755 index 3e0db31..0000000 --- a/gettext-tools/tests/xgettext-14 +++ /dev/null @@ -1,47 +0,0 @@ -#! /bin/sh - -# Test --foreign-user - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles xg-test14.in.c" -cat < xg-test14.in.c -_("extract me") -EOF - -tmpfiles="$tmpfiles xg-test14.po" -: ${XGETTEXT=xgettext} -# delete POT-Creation-Date: line because the date depends on local time. -${XGETTEXT} --output - --foreign-user --no-location -k_ xg-test14.in.c \ - | sed '/\"POT-Creation-Date:.*/d' > xg-test14.po - -tmpfiles="$tmpfiles xg-test14.ok" -cat < xg-test14.ok -# SOME DESCRIPTIVE TITLE. -# This file is put in the public domain. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: 8bit\n" - -msgid "extract me" -msgstr "" -EOF - -: ${DIFF=diff} -${DIFF} xg-test14.ok xg-test14.po -result=$? - -rm -fr $tmpfiles - -exit $result diff --git a/gettext-tools/tests/xgettext-4 b/gettext-tools/tests/xgettext-4 new file mode 100755 index 0000000..3e0db31 --- /dev/null +++ b/gettext-tools/tests/xgettext-4 @@ -0,0 +1,47 @@ +#! /bin/sh + +# Test --foreign-user + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles xg-test14.in.c" +cat < xg-test14.in.c +_("extract me") +EOF + +tmpfiles="$tmpfiles xg-test14.po" +: ${XGETTEXT=xgettext} +# delete POT-Creation-Date: line because the date depends on local time. +${XGETTEXT} --output - --foreign-user --no-location -k_ xg-test14.in.c \ + | sed '/\"POT-Creation-Date:.*/d' > xg-test14.po + +tmpfiles="$tmpfiles xg-test14.ok" +cat < xg-test14.ok +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "extract me" +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-test14.ok xg-test14.po +result=$? + +rm -fr $tmpfiles + +exit $result -- cgit v1.1