diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-scheme-1')
-rw-r--r--[-rwxr-xr-x] | gettext-tools/tests/xgettext-scheme-1 | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gettext-tools/tests/xgettext-scheme-1 b/gettext-tools/tests/xgettext-scheme-1 index 37bc58f..4ecccae 100755..100644 --- a/gettext-tools/tests/xgettext-scheme-1 +++ b/gettext-tools/tests/xgettext-scheme-1 @@ -3,10 +3,6 @@ # Test Scheme support: --add-comments option. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles xg-sc-1.scm" cat <<EOF > xg-sc-1.scm ; This comment will not be extracted. (display (_ "help")) @@ -17,15 +13,11 @@ cat <<EOF > xg-sc-1.scm (display (_ "The Fabulous Four")) EOF -tmpfiles="$tmpfiles xg-sc-1.tmp.po xg-sc-1.po" : ${XGETTEXT=xgettext} ${XGETTEXT} -k_ --omit-header --no-location --add-comments=TRANSLATORS: \ - -d xg-sc-1.tmp xg-sc-1.scm -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < xg-sc-1.tmp.po > xg-sc-1.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } + -d xg-sc-1.tmp xg-sc-1.scm || exit 1 +LC_ALL=C tr -d '\r' < xg-sc-1.tmp.po > xg-sc-1.po || exit 1 -tmpfiles="$tmpfiles xg-sc-1.ok" cat <<EOF > xg-sc-1.ok msgid "help" msgstr "" @@ -42,6 +34,4 @@ EOF ${DIFF} xg-sc-1.ok xg-sc-1.po result=$? -rm -fr $tmpfiles - exit $result |