1#! /bin/sh 2 3# Test C support: --trigraphs option. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles xg-c-4.in.c" 9cat <<EOF > xg-c-4.in.c 10main()??<printf(gettext("Hello, " "World!" "??/n")); ??> 11EOF 12 13tmpfiles="$tmpfiles xg-c-4.po" 14: ${XGETTEXT=xgettext} 15${XGETTEXT} --omit-header --no-location --trigraphs -d xg-c-4 xg-c-4.in.c 16test $? = 0 || { rm -fr $tmpfiles; exit 1; } 17 18tmpfiles="$tmpfiles xg-c-4.ok" 19cat <<EOF > xg-c-4.ok 20#, c-format 21msgid "Hello, World!\n" 22msgstr "" 23EOF 24 25: ${DIFF=diff} 26${DIFF} xg-c-4.ok xg-c-4.po 27result=$? 28 29rm -fr $tmpfiles 30 31exit $result 32