3 # Test ObjectiveC extractor.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-ob-1.m"
16 _
(@
"foo") _
( @
"foo2" /* test */ )
20 " \" _(foo) \" /* comment "
23 (@
/* comment
" */ "test"
28 NSLocalizedString(@"Information
", @"")
31 tmpfiles="$tmpfiles xg-ob-1.po
"
32 : ${XGETTEXT=xgettext}
33 ${XGETTEXT} --omit-header -k_ -kNSLocalizedString xg-ob-1.m -d xg-ob-1
34 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
36 tmpfiles="$tmpfiles xg-ob-1.ok
"
37 cat <<\EOF > xg-ob-1.ok
60 ${DIFF} xg-ob-1.ok xg-ob-1.po