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.
37 lines
655 B
Bash
Executable File
37 lines
655 B
Bash
Executable File
#! /bin/sh
|
|
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
|
|
|
|
# Test --add-location=file option.
|
|
|
|
cat <<\EOF > xg-test10a.c
|
|
gettext ("foo");
|
|
EOF
|
|
|
|
cat <<\EOF > xg-test10b.c
|
|
gettext ("foo");
|
|
gettext ("bar");
|
|
EOF
|
|
|
|
: ${XGETTEXT=xgettext}
|
|
${XGETTEXT} --add-location=file --omit-header xg-test10a.c xg-test10b.c \
|
|
-o xg-test10.out >xg-test10.err 2>&1
|
|
result=$?
|
|
cat xg-test10.err | grep -v 'warning: Charset' | grep -v '^ '
|
|
test $result = 0 || { Exit 1; }
|
|
|
|
cat <<\EOF > xg-test10.ok
|
|
#: xg-test10a.c xg-test10b.c
|
|
msgid "foo"
|
|
msgstr ""
|
|
|
|
#: xg-test10b.c
|
|
msgid "bar"
|
|
msgstr ""
|
|
EOF
|
|
|
|
: ${DIFF=diff}
|
|
${DIFF} xg-test10.ok xg-test10.out
|
|
result=$?
|
|
|
|
exit $result
|