From 72b9b3b70f75bcb61b9959541c7a6c6041b83c56 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 18 Dec 2023 10:53:18 -0800 Subject: Makefile: add validate-docx-golden-tests target. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5b530ade9..87398d114 100644 --- a/Makefile +++ b/Makefile @@ -235,6 +235,13 @@ update-website: ## update website and upload make -C $(WEBSITE) upload .PHONY: update-website +validate-docx-golden-tests: ## validate docx golden tests against schema + which xmllint || ("xmllint is required" && exit 1) + test -d ./docx-validator || \ + git clone https://github.com/devoidfury/docx-validator + cd docx-validator && for f in ../test/docx/golden/*.docx; do ./validate $$f || exit 1 ; done +.PHONY: validate-docx-golden-tests + modules.csv: $(PANDOCSOURCEFILES) @rg '^import.*Text\.Pandoc\.' --with-filename $^ \ | rg -v 'Text\.Pandoc\.(Definition|Builder|Walk|Generic)' \ -- cgit v1.2.3