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