facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
59 lines
833 B
Bash
Executable File
59 lines
833 B
Bash
Executable File
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test ObjectiveC extractor.
|
|
|
|
cat <<\EOF > xg-ob-1.m
|
|
id str = _(@
|
|
"conca" /* comment */
|
|
@
|
|
// another comment
|
|
"tenated");
|
|
|
|
_(@"foo") _ ( @"foo2" /* test */ )
|
|
|
|
"_()"
|
|
|
|
" \" _(foo) \" /* comment "
|
|
|
|
_ // test
|
|
(@ /* comment " */ "test"
|
|
@
|
|
" test2"
|
|
)
|
|
|
|
NSLocalizedString(@"Information", @"")
|
|
EOF
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
${XGETTEXT} --omit-header -k_ -kNSLocalizedString -d xg-ob-1.tmp xg-ob-1.m || Exit 1
|
|
LC_ALL=C tr -d '\r' < xg-ob-1.tmp.po > xg-ob-1.po || Exit 1
|
|
|
|
cat <<\EOF > xg-ob-1.ok
|
|
#: xg-ob-1.m:2
|
|
msgid "concatenated"
|
|
msgstr ""
|
|
|
|
#: xg-ob-1.m:7
|
|
msgid "foo"
|
|
msgstr ""
|
|
|
|
#: xg-ob-1.m:7
|
|
msgid "foo2"
|
|
msgstr ""
|
|
|
|
#: xg-ob-1.m:14
|
|
msgid "test test2"
|
|
msgstr ""
|
|
|
|
#: xg-ob-1.m:19
|
|
msgid "Information"
|
|
msgstr ""
|
|
EOF
|
|
|
|
: ${DIFF=diff}
|
|
${DIFF} xg-ob-1.ok xg-ob-1.po
|
|
result=$?
|
|
|
|
exit $result
|