diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-2')
-rw-r--r--[-rwxr-xr-x] | gettext-tools/tests/xgettext-2 | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gettext-tools/tests/xgettext-2 b/gettext-tools/tests/xgettext-2 index 98424c2..ffdd355 100755..100644 --- a/gettext-tools/tests/xgettext-2 +++ b/gettext-tools/tests/xgettext-2 @@ -4,10 +4,6 @@ # Even an empty string is extracted, if not overridden by xgettext's # default-constructed header entry. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles xg-test2.in.c" cat <<EOF > xg-test2.in.c This is a test of the xgettext functionality. /* xgettext:no-c-format */ @@ -25,14 +21,10 @@ _ _("") EOF -tmpfiles="$tmpfiles xg-test2.tmp.po xg-test2.po" : ${XGETTEXT=xgettext} -${XGETTEXT} -d xg-test2.tmp -k_ --omit-header --no-location xg-test2.in.c -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < xg-test2.tmp.po > xg-test2.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +${XGETTEXT} -d xg-test2.tmp -k_ --omit-header --no-location xg-test2.in.c || exit 1 +LC_ALL=C tr -d '\r' < xg-test2.tmp.po > xg-test2.po || exit 1 -tmpfiles="$tmpfiles xg-test2.ok" cat <<EOF > xg-test2.ok #, no-c-format msgid "extract me" @@ -52,6 +44,4 @@ EOF ${DIFF} xg-test2.ok xg-test2.po result=$? -rm -fr $tmpfiles - exit $result |