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.
45 lines
750 B
Bash
45 lines
750 B
Bash
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test Vala support: printf and format strings.
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
|
|
cat <<\EOF > xg-vala-6.vala
|
|
"<b>%s</b>".printf(_("Hello 1"));
|
|
_("Explanation: %s").printf(_("Hello 2"));
|
|
Posix.printf(_("Hello 3"));
|
|
Posix.printf(_("Hello 4 %s!"), _("Sir"));
|
|
EOF
|
|
|
|
${XGETTEXT} --omit-header --no-location -o xg-vala-6.tmp xg-vala-6.vala || Exit 1
|
|
func_filter_POT_Creation_Date xg-vala-6.tmp xg-vala-6.po
|
|
|
|
cat <<\EOF > xg-vala-6.ok
|
|
msgid "Hello 1"
|
|
msgstr ""
|
|
|
|
#, c-format
|
|
msgid "Explanation: %s"
|
|
msgstr ""
|
|
|
|
msgid "Hello 2"
|
|
msgstr ""
|
|
|
|
msgid "Hello 3"
|
|
msgstr ""
|
|
|
|
#, c-format
|
|
msgid "Hello 4 %s!"
|
|
msgstr ""
|
|
|
|
msgid "Sir"
|
|
msgstr ""
|
|
EOF
|
|
|
|
: ${DIFF=diff}
|
|
${DIFF} xg-vala-6.ok xg-vala-6.po
|
|
result=$?
|
|
|
|
exit $result
|