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