diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6 | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6')
-rwxr-xr-x | debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6 b/debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6 new file mode 100755 index 00000000..88a139a0 --- /dev/null +++ b/debian/gettext-kde/gettext-kde-0.10.35/tests/xgettext-6 @@ -0,0 +1,38 @@ +#! /bin/sh + +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles xg-test6.in.cc" +cat <<EOF > xg-test6.in.cc +main(){printf(gettext/*puke*/(/*barf*/"Hello, " "World!" "\n")); } +EOF + +tmpfiles="$tmpfiles xg-test6.po" +: ${XGETTEXT=xgettext} +${XGETTEXT} --omit-header --add-comments xg-test6.in.cc -d xg-test6 + +tmpfiles="$tmpfiles xg-test6.ok" +cat <<EOF > xg-test6.ok +#. puke +#. barf +msgid "Hello, World!\n" +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-test6.ok xg-test6.po +result=$? + +rm -fr $tmpfiles + +exit $result + +# Preserve executable bits for this shell script. +# Thanks to Noah Friedman for this great trick. +Local Variables: +eval:(defun frobme () (set-file-modes buffer-file-name file-mode)) +eval:(make-local-variable 'file-mode) +eval:(setq file-mode (file-modes (buffer-file-name))) +eval:(make-local-variable 'after-save-hook) +eval:(add-hook 'after-save-hook 'frobme) +End: |