• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
1#! /bin/sh
2
3# This test often fails during development. It works after "make dist".
4
5# Test C support.
6
7tmpfiles=""
8trap 'rm -fr $tmpfiles' 1 2 3 15
9
10tmpfiles="$tmpfiles xg-c-1.tmp.po xg-c-1.po"
11: ${XGETTEXT=xgettext}
12${XGETTEXT} -d xg-c-1.tmp -k_ --omit-header --no-location \
13 $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c
14test $? = 0 || { rm -fr $tmpfiles; exit 1; }
15tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po
16test $? = 0 || { rm -fr $tmpfiles; exit 1; }
17
18: ${DIFF=diff}
19${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po
20result=$?
21
22rm -fr $tmpfiles
23
24exit $result
25