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.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 14test $? = 0 || { rm -fr $tmpfiles; exit 1; } 15 16: ${DIFF=diff} 17${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po 18result=$? 19 20rm -fr $tmpfiles 21 22exit $result 23