1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # This test often fails during development. It works after "make dist". 4 1.1 christos 5 1.1 christos # Test C support. 6 1.1 christos 7 1.1 christos tmpfiles="" 8 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 9 1.1 christos 10 1.1 christos tmpfiles="$tmpfiles xg-c-1.po" 11 1.1 christos : ${XGETTEXT=xgettext} 12 1.1 christos ${XGETTEXT} -d xg-c-1 -k_ --omit-header --no-location \ 13 1.1 christos $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c 14 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; } 15 1.1 christos 16 1.1 christos : ${DIFF=diff} 17 1.1 christos ${DIFF} $top_srcdir/tests/xg-c-1.ok.po xg-c-1.po 18 1.1 christos result=$? 19 1.1 christos 20 1.1 christos rm -fr $tmpfiles 21 1.1 christos 22 1.1 christos exit $result 23