Skip to content

Commit

Permalink
Makefile: make validate-epub check v2 output too.
Browse files Browse the repository at this point in the history
See #9469.
  • Loading branch information
jgm committed Feb 16, 2024
1 parent 45b6df5 commit 9f8344d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,13 @@ validate-epub: ## generate an epub and validate it with epubcheck and ace
which epubcheck || exit 1
which ace || exit 1
tmp=$$(mktemp -d) && \
$(pandoc) test/epub/wasteland.native -Mtitle="The Wasteland" --resource-path test/epub -o $$tmp/file.epub --number-sections --toc --quiet && \
echo $$tmp/file.epub && \
epubcheck $$tmp/file.epub && \
ace $$tmp/file.epub -o ace --force
for epubver in 2 3; do \
file=$$tmp/ver$$epubver.epub ; \
$(pandoc) test/epub/wasteland.native -Mtitle="The Wasteland" --resource-path test/epub -t epub$$epubver -o $$file --number-sections --toc --quiet && \
echo $$file && \
epubcheck $$file || exit 1 && \
ace $$file -o ace-report-v$$epubver --force ; \
done

modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \
Expand Down

0 comments on commit 9f8344d

Please sign in to comment.