ff4ff35918
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.
21 lines
737 B
Bash
Executable File
21 lines
737 B
Bash
Executable File
#!/bin/sh
|
|
# Simple check of a stateful encoding.
|
|
# Usage: check-stateful SRCDIR CHARSET
|
|
srcdir="$1"
|
|
charset="$2"
|
|
set -e
|
|
|
|
# charset, modified for use in filenames.
|
|
charsetf=`echo "$charset" | sed -e 's,:,-,g'`
|
|
|
|
if test -f "${srcdir}"/"$charsetf"-snippet.alt; then
|
|
../src/iconv_no_i18n -f "$charset" -t UTF-8 < "${srcdir}"/"$charsetf"-snippet.alt > tmp-snippet
|
|
cmp "${srcdir}"/"$charsetf"-snippet.UTF-8 tmp-snippet
|
|
fi
|
|
../src/iconv_no_i18n -f "$charset" -t UTF-8 < "${srcdir}"/"$charsetf"-snippet > tmp-snippet
|
|
cmp "${srcdir}"/"$charsetf"-snippet.UTF-8 tmp-snippet
|
|
../src/iconv_no_i18n -f UTF-8 -t "$charset" < "${srcdir}"/"$charsetf"-snippet.UTF-8 > tmp-snippet
|
|
cmp "${srcdir}"/"$charsetf"-snippet tmp-snippet
|
|
rm -f tmp-snippet
|
|
exit 0
|