fix: update README file path patterns in indentation and version scripts

This commit is contained in:
TheophileDiot 2025-10-06 14:06:25 +02:00
parent 24275f9cb5
commit 46e97cb4f1
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ from __future__ import annotations
import difflib
from pathlib import Path
CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common" / "core"
CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common"
def needs_processing(path: Path) -> bool:
@ -106,7 +106,7 @@ def process_file(path: Path) -> bool:
def main() -> None:
if not CORE_DIR.exists():
raise SystemExit(f"Core directory not found: {CORE_DIR}")
readmes = sorted(CORE_DIR.glob("*/README*.md"))
readmes = sorted(CORE_DIR.glob("**/README*.md"))
changed = 0
for readme in readmes:
if not needs_processing(readme):

View file

@ -26,7 +26,7 @@ sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*.md
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*/*.md
# README
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" README.md
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README.md
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README*.md
# tests
sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" tests/ui/docker-compose.yml
shopt -s globstar