1#! /bin/sh 2 3# This test often fails during development. It works after "make dist". 4 5# Test -x option. 6 7tmpfiles="" 8trap 'rm -fr $tmpfiles' 1 2 3 15 9 10tmpfiles="$tmpfiles zero-domain.po xg-test1.err" 11rm -f zero-domain.po 12: ${XGETTEXT=xgettext} 13LC_MESSAGES=C LC_ALL= \ 14${XGETTEXT} -k_ -d zero-domain -x $top_srcdir/po/gettext-tools.pot \ 15 $top_srcdir/src/xgettext.c >xg-test1.err 2>&1 16result=$? 17cat xg-test1.err | grep -v 'warning: Charset' | grep -v '^ ' 18test $result = 0 || { rm -fr $tmpfiles; exit 1; } 19 20test ! -f zero-domain.po 21result=$? 22 23rm -fr $tmpfiles 24 25exit $result 26