From f43f83512e59c8eef857eb3c5bfae758e3250824 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 20 May 2023 01:36:52 +0200 Subject: [PATCH] Meta: Also run markdown-check on markdown files in each Port subdir --- Meta/check-markdown.sh | 2 +- Userland/Utilities/markdown-check.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Meta/check-markdown.sh b/Meta/check-markdown.sh index aee514e0079..6132ca303b7 100755 --- a/Meta/check-markdown.sh +++ b/Meta/check-markdown.sh @@ -23,4 +23,4 @@ if [ -z "$SERENITY_SOURCE_DIR" ] ; then export SERENITY_SOURCE_DIR fi -find AK Base Documentation Kernel Meta Ports Tests Userland -path 'Ports/*/*' -prune -o -type f -name '*.md' -print0 | xargs -0 "${MARKDOWN_CHECK_BINARY}" README.md CONTRIBUTING.md +find AK Base Documentation Kernel Meta Ports Tests Userland -type f -name '*.md' -print0 | xargs -0 "${MARKDOWN_CHECK_BINARY}" README.md CONTRIBUTING.md diff --git a/Userland/Utilities/markdown-check.cpp b/Userland/Utilities/markdown-check.cpp index 5e6e22e99d5..0115f9c07e8 100644 --- a/Userland/Utilities/markdown-check.cpp +++ b/Userland/Utilities/markdown-check.cpp @@ -6,9 +6,9 @@ /* * You may want to invoke the checker like this: - * $ cd Build/lagom - * $ ninja - * $ find ../../AK ../../Base ../../Documentation/ ../../Kernel/ ../../Meta/ ../../Ports/ ../../Tests/ ../../Userland/ -type f -name '*.md' | xargs ./markdown-check ../../README.md + * $ ninja -C Build/lagom + * $ export SERENITY_SOURCE_DIR=/path/to/serenity + * $ find AK Base Documentation Kernel Meta Ports Tests Userland -type f -name '*.md' -print0 | xargs -0 Build/lagom/markdown-check README.md CONTRIBUTING.md */ #include