Files
czcionka e183d23950
check / check-without-hardware (push) Successful in 6m45s
Docs and code: translate Polish comments, messages and documentation to English
- README, CHANGELOG, RELEASE_NOTES, THIRD_PARTY_NOTICES and docs/*.md
  translated to English; cross-markdown anchors updated
- C/C++/Python/shell comments and user-facing messages translated
- identifiers, protocol names, commands and literals unchanged
- native tests re-verified: 24/24 PASS; tpms_frame.py self-test PASS
2026-10-30 18:01:32 +00:00

28 lines
1.1 KiB
Bash

#!/usr/bin/env bash
# Fetches and builds the exactly pinned, independent RF references.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
DEPS="${DEPS_DIR:-$ROOT/.cache}"
RTL_COMMIT=406f9a33550a2b6b3d0d8a8a486417ce5b3f13ab
TESTS_COMMIT=1aa8c29d6b9383739d1aeed495dbc5069b704392
mkdir -p "$DEPS"
if [ ! -d "$DEPS/rtl_433/.git" ]; then
git clone --filter=blob:none https://github.com/merbanan/rtl_433.git "$DEPS/rtl_433"
fi
git -C "$DEPS/rtl_433" checkout --detach "$RTL_COMMIT"
if [ ! -x "$DEPS/rtl_433/build/src/rtl_433" ]; then
cmake -S "$DEPS/rtl_433" -B "$DEPS/rtl_433/build" -DCMAKE_BUILD_TYPE=Release
cmake --build "$DEPS/rtl_433/build" -j2
fi
if [ ! -d "$DEPS/rtl_433_tests/.git" ]; then
git clone --filter=blob:none --sparse https://github.com/merbanan/rtl_433_tests.git "$DEPS/rtl_433_tests"
git -C "$DEPS/rtl_433_tests" sparse-checkout set tests/Schrader_EG53MA4_TPMS
fi
git -C "$DEPS/rtl_433_tests" checkout --detach "$TESTS_COMMIT"
printf 'RTL433=%s\nREFERENCE_DIR=%s\n' \
"$DEPS/rtl_433/build/src/rtl_433" \
"$DEPS/rtl_433_tests/tests/Schrader_EG53MA4_TPMS/01"