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

38 lines
754 B
Bash
Executable File

#!/bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test of comment extraction in the case of duplicated msgids.
cat <<\EOF > xg-test7.c
/* first comment */
/* xgettext: c-format */
gettext ("abc");
/* first comment */
/* xgettext: lisp-format */
gettext ("abc");
/* second comment */
/* xgettext: python-format */
gettext ("abc");
EOF
: ${XGETTEXT=xgettext}
${XGETTEXT} --omit-header --add-comments -d xg-test7.tmp xg-test7.c || Exit 1
LC_ALL=C tr -d '\r' < xg-test7.tmp.po > xg-test7.po || Exit 1
cat <<\EOF > xg-test7.ok
#. first comment
#. second comment
#: xg-test7.c:3 xg-test7.c:7 xg-test7.c:11
#, c-format, python-format, lisp-format
msgid "abc"
msgstr ""
EOF
: ${DIFF=diff}
${DIFF} xg-test7.ok xg-test7.po
result=$?
exit $result