No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / tests / xgettext-c-1
blob212989c2448206251e6dac331659754039ac3827
1 #! /bin/sh
3 # This test often fails during development. It works after "make dist".
5 # Test C support.
7 tmpfiles=""
8 trap 'rm -fr $tmpfiles' 1 2 3 15
10 tmpfiles="$tmpfiles xg-c-1.po"
11 : ${XGETTEXT=xgettext}
12 ${XGETTEXT} -d xg-c-1 -k_ --omit-header --no-location \
13 $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c
14 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
16 : ${DIFF=diff}
17 ${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po
18 result=$?
20 rm -fr $tmpfiles
22 exit $result