Files
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
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.
2026-05-14 10:55:53 +01:00

42 lines
982 B
Bash
Executable File

#!/bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test of msgid_plural extraction in the case of duplicated msgids.
# <https://lists.gnu.org/archive/html/bug-gettext/2014-10/msg00028.html>
cat <<\EOF > xg-test12.c
ngettext ("abc", "abc", 1);
ngettext ("abc", "abc", 1);
/* Hypothetical case: plural extraction from a function
with a single argument. */
xngettext ("def", 1);
xngettext ("def", 1);
EOF
: ${XGETTEXT=xgettext}
${XGETTEXT} --omit-header --add-comments -kngettext:1,1 -kxngettext:1,1 -d xg-test12.tmp xg-test12.c || Exit 1
LC_ALL=C tr -d '\r' < xg-test12.tmp.po > xg-test12.po || Exit 1
cat <<\EOF > xg-test12.ok
#: xg-test12.c:1 xg-test12.c:2
msgid "abc"
msgid_plural "abc"
msgstr[0] ""
msgstr[1] ""
#. Hypothetical case: plural extraction from a function
#. with a single argument.
#: xg-test12.c:6 xg-test12.c:7
msgid "def"
msgid_plural "def"
msgstr[0] ""
msgstr[1] ""
EOF
: ${DIFF=diff}
${DIFF} xg-test12.ok xg-test12.po
result=$?
exit $result