X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gettext-tools%2Ftests%2Fxgettext-ycp-2;h=b5ea282ec1741b9aec7a458656aab6f7e2bba88a;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=7455d2d85b7a7969630de97e06fdd3405dc33f9b;hpb=5d61132f836323aaf2879e04abc9d4056db248a2;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/tests/xgettext-ycp-2 b/gettext-tools/tests/xgettext-ycp-2 index 7455d2d..b5ea282 100755 --- a/gettext-tools/tests/xgettext-ycp-2 +++ b/gettext-tools/tests/xgettext-ycp-2 @@ -1,11 +1,8 @@ #!/bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test YCP support: --add-comments option. -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles xg-y-2.ycp" cat < xg-y-2.ycp // This comment will not be extracted. print (_("help")); @@ -21,15 +18,11 @@ print (_("Hey Jude")); print (_("The Fabulous Four")); EOF -tmpfiles="$tmpfiles xg-y-2.tmp.po xg-y-2.po" : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ - -d xg-y-2.tmp xg-y-2.ycp -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -LC_ALL=C tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } + -d xg-y-2.tmp xg-y-2.ycp || exit 1 +LC_ALL=C tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po || exit 1 -tmpfiles="$tmpfiles xg-y-2.ok" cat < xg-y-2.ok msgid "help" msgstr "" @@ -56,6 +49,4 @@ EOF ${DIFF} xg-y-2.ok xg-y-2.po result=$? -rm -fr $tmpfiles - exit $result