diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-perl-2')
-rw-r--r--[-rwxr-xr-x] | gettext-tools/tests/xgettext-perl-2 | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gettext-tools/tests/xgettext-perl-2 b/gettext-tools/tests/xgettext-perl-2 index 413d332..85f0464 100755..100644 --- a/gettext-tools/tests/xgettext-perl-2 +++ b/gettext-tools/tests/xgettext-perl-2 @@ -3,10 +3,6 @@ # Test of Perl support with ISO-8859-1 encoded input. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles xg-pl-2.pl" cat <<\EOF > xg-pl-2.pl use charnames ':full'; printf "%s\n", gettext "Böse Bübchen - wo sind sie blo\N{LATIN SMALL LETTER SHARP S}?"; @@ -15,14 +11,11 @@ Die europäische Währung ist \N{EURO SIGN}. STR EOF -tmpfiles="$tmpfiles xg-pl-2.po" : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --from-code=ISO-8859-1 xg-pl-2.pl \ - | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-pl-2.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-pl-2.po || exit 1 -tmpfiles="$tmpfiles xg-pl-2.ok" cat <<\EOF > xg-pl-2.ok # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER @@ -55,6 +48,4 @@ EOF ${DIFF} xg-pl-2.ok xg-pl-2.po result=$? -rm -fr $tmpfiles - exit $result |