summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-stringtable-1
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/tests/xgettext-stringtable-1')
-rw-r--r--[-rwxr-xr-x]gettext-tools/tests/xgettext-stringtable-111
1 files changed, 1 insertions, 10 deletions
diff --git a/gettext-tools/tests/xgettext-stringtable-1 b/gettext-tools/tests/xgettext-stringtable-1
index b352533..4fd08fa 100755..100644
--- a/gettext-tools/tests/xgettext-stringtable-1
+++ b/gettext-tools/tests/xgettext-stringtable-1
@@ -3,10 +3,6 @@
# Test extractor of NeXTstep/GNUstep .strings files.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-tmpfiles="$tmpfiles xg-stbl-1.strings"
cat <<\EOF > xg-stbl-1.strings
/***
German.lproj/Localizable.strings
@@ -24,15 +20,12 @@ add comments above this one
= "Dieses Programm läuft mit der Prozess-Nummer %d.";
EOF
-tmpfiles="$tmpfiles xg-stbl-1.tmp xg-stbl-1.po"
: ${XGETTEXT=xgettext}
-${XGETTEXT} -o xg-stbl-1.tmp xg-stbl-1.strings
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+${XGETTEXT} -o xg-stbl-1.tmp xg-stbl-1.strings || exit 1
# Don't simplify this to "grep ... < xg-stbl-1.tmp", otherwise OpenBSD 4.0 grep
# only outputs "Binary file (standard input) matches".
cat xg-stbl-1.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-stbl-1.po
-tmpfiles="$tmpfiles xg-stbl-1.ok"
cat <<\EOF > xg-stbl-1.ok
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
@@ -71,6 +64,4 @@ EOF
${DIFF} xg-stbl-1.ok xg-stbl-1.po
result=$?
-rm -fr $tmpfiles
-
exit $result