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.
36 lines
846 B
Bash
Executable File
36 lines
846 B
Bash
Executable File
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test C support: extraction of contexts specified in GNOME glib syntax.
|
|
|
|
cat <<\EOF > xg-c-ctxt-3.c
|
|
/* (glib) The 1-argument Q_ macro is a gettext with context. */
|
|
print (Q_ ("Printer|Open"));
|
|
/* (hypothetical) The 2-argument Q_ macro is an ngettext with contexts. */
|
|
print (Q_ ("Menu|Recent File", "Menu|Recent Files"));
|
|
EOF
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
${XGETTEXT} --omit-header --no-location \
|
|
--keyword=Q_:1g --keyword=Q_:1g,2g \
|
|
-d xg-c-ctxt-3.tmp xg-c-ctxt-3.c || Exit 1
|
|
LC_ALL=C tr -d '\r' < xg-c-ctxt-3.tmp.po > xg-c-ctxt-3.po || Exit 1
|
|
|
|
cat <<EOF > xg-c-ctxt-3.ok
|
|
msgctxt "Printer"
|
|
msgid "Open"
|
|
msgstr ""
|
|
|
|
msgctxt "Menu"
|
|
msgid "Recent File"
|
|
msgid_plural "Recent Files"
|
|
msgstr[0] ""
|
|
msgstr[1] ""
|
|
EOF
|
|
|
|
: ${DIFF=diff}
|
|
${DIFF} xg-c-ctxt-3.ok xg-c-ctxt-3.po
|
|
result=$?
|
|
|
|
exit $result
|