Files
RedBear-OS/recipes/libs/libmpfr/source/tools/ck-mparam
T
vasilito ff4ff35918 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

43 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
# Check the mparam.h files. This script is useful as not all mparam.h
# files may be tested by our tests.
# Copyright 2011-2025 Free Software Foundation, Inc.
# This script is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# Note: This script must be run from a writable directory (an executable
# check_mparam will be created in it). Moreover, the source tree that is
# checked is the one that contains this script, not the one corresponding
# to the current working directory (the rule for the other scripts in
# the tools directory may be different).
set -e
dir=$(dirname "$0")
files=$(cd "$dir/.." && find src/*/ -name mparam.h)
err=0
for i in $files
do
#output=`echo "#include \"$i\"" | gcc -o /dev/null -c -xc - 2>&1`
#if [ -n "$output" ]; then
# printf "Error for file '%s':\n%s\n" "$i" "$output"
# err=1
#fi
rm -f check_mparam
${CC:-cc} "-DMPARAM=\"../$i\"" -o check_mparam "$dir"/check_mparam.c
./check_mparam
done
rm -f check_mparam
exit $err