458 Commits

Author SHA1 Message Date
John MacFarlane eea72420fc Use ghc 9.10 (not 9.12) for releases and nightlies. 2025-12-11 23:07:06 +01:00
John MacFarlane c04c5ad16d Makefile: Use python3 in update-translations. 2025-11-02 15:40:09 +01:00
John MacFarlane fb28952bec Revise Makefile and CI treatment of --ghc-options.
Previously we set `--ghc-options` in Makefile and CI; but this
overrides the ghc-options set in the pandoc.cabal file.

Better to add options one-by-one using `--ghc-option`.

We no longer use GHC_OPTIONS and just put these extra options
in CABAL_OPTIONS.
2025-07-23 14:10:43 -07:00
John MacFarlane b683726447 Makefile: add -Wall to ghc options. 2025-07-23 09:09:50 -07:00
John MacFarlane 241ddad023 Fix regexes in prelease check. 2025-05-28 15:30:17 -07:00
John MacFarlane 97b6e7660d Makefile: tweaks in prerelease 2025-05-14 17:30:35 -07:00
John MacFarlane f37b12d941 Use jq instead of json_reformat in validate-docx-golden-tests2. 2025-05-11 11:01:44 -07:00
John MacFarlane bd7d5ae7f1 Makefile: fix typo in latex-package-dependencies target. 2025-05-11 10:41:25 -07:00
John MacFarlane c355be2a8e Makefile: use pandoc lua instead of lua.
Reduces dependencies.
2025-05-11 10:38:03 -07:00
John MacFarlane de13b8338f Makefile: install @daisy/ace from npm if not present. 2025-05-11 10:30:55 -07:00
Olivier Benz a32a9ff7e9 Revert "Use int-native subtagged image (#10799)" (#10804)
This reverts commit a14997f92e.
2025-04-25 08:04:07 -07:00
Olivier Benz a14997f92e Use int-native subtagged image (#10799) 2025-04-23 10:39:33 -07:00
John MacFarlane c589a89d8f Tweaks to release process. 2025-04-09 11:22:43 -07:00
John MacFarlane 961b5642a2 Improve 'make authors'. 2025-04-08 14:52:24 -07:00
John MacFarlane 97a5285a4f RELEASE-CHECKLIST-TEMPLATE.org: minor changes. 2025-04-08 13:44:28 -07:00
John MacFarlane 8303783a69 Makefile: rename version -> VERSION. 2025-04-08 13:27:52 -07:00
John MacFarlane 836ef914bc Minor Makefile syntax. 2025-04-08 13:24:34 -07:00
John MacFarlane 20b2e5ff4e Add Makefile target release-checkist.
Make RELEASE-CHECKLIST.org into RELEASE-CHECKLIST-TEMPLATE.org.
The makefile target will fill in version numbers in this template.
2025-04-07 11:53:36 -07:00
John MacFarlane 8e04bab8c1 Release builds: build with ghc 9.8. 2025-03-27 16:11:41 -06:00
John MacFarlane 7140861a0a Makefile - ignore missing upper bounds in cabal check. 2025-03-16 11:00:40 -07:00
John MacFarlane fc6e4956dd Makefile: make make binpath quiet. 2025-01-31 09:07:22 -08:00
John MacFarlane 7b873ac790 Makefile add prof target 2024-12-20 10:01:01 -08:00
Stephen Huan d945c989eb Makefile: add update-translations target 2024-07-05 13:04:15 -07:00
John MacFarlane 23337fe9dc Makefile: improve epub-validation target.
Use `--epub-cover-image` to catch issues that only arise with that.
See #9493.
2024-02-22 23:12:15 -06:00
John MacFarlane b506171578 Makefile: improve validate-epub. 2024-02-16 13:42:19 -08:00
John MacFarlane 9f8344d54e Makefile: make validate-epub check v2 output too.
See #9469.
2024-02-16 11:51:28 -08:00
Olivier Benz 822480c4c8 Use images from Quay (#9411) 2024-02-05 09:04:30 -08:00
John MacFarlane 2f45f1e232 Makefile: Validate generated EPUB as part of prerelease checks. 2024-01-30 08:33:16 -08:00
John MacFarlane 8b539dbf1d Makefile: change default rule to build THEN test.
That way we can play with the executable while the tests complete.
2024-01-29 11:11:39 -08:00
John MacFarlane 6fe94a316a make validate-epub - produce HTML ace report in ace subdirectory. 2024-01-27 10:57:27 -08:00
John MacFarlane caa73134bc Regenerate epub tests with latest changes to EPUB reader. 2024-01-27 10:34:00 -08:00
John MacFarlane ebed209627 Add ace check to validate-epub Makefile target. 2024-01-26 10:48:48 -08:00
John MacFarlane 6533296fae Fix make binpath target. 2024-01-05 14:50:27 -08:00
Edwin Török c6892bec24 ci(validate-docx-golden-tests2): fail on errors
The validator just prints errors, but always exited with nonzero.

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-19 15:00:23 -08:00
Edwin Török 95432d3f4e test(docx): add workaround for mc:Ignorable
`make validate-docx-golden-tests` now passes

Fixes https://github.com/jgm/pandoc/issues/9269

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-18 17:15:03 -08:00
Edwin Török 3e360f5a3e test(Makefile): add validate-docx-golden-test2
Add a validation rule based on OOXML-Validator which uses the
Open-XML-SDK shipped and maintained as part of dotnet.

This catches a few more issues compared to the .xsd.

Unfortunately currently this executable always exits with 0 even when
validation failed. That can be fixed later by invoking it from a script.

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-18 17:15:03 -08:00
Edwin Török 806740805d fix(Makefile): make quick-stack was failing, "j" was expecting a number
Fixes:
```
pandoc-lua-engine> option -j: Could not parse num-threads
pandoc-lua-engine>
pandoc-lua-engine> Usage: test-pandoc-lua-engine [-p|--pattern PATTERN] [-t|--timeout DURATION]
pandoc-lua-engine>                               [-l|--list-tests] [-j|--num-threads NUMBER]
pandoc-lua-engine>                               [-q|--quiet] [--hide-successes]
pandoc-lua-engine>                               [--color never|always|auto] [--ansi-tricks ARG]
pandoc-lua-engine>                               [--accept] [--no-create] [--size-cutoff n]
pandoc-lua-engine>                               [--delete-output never|onpass|always]

```

Signed-off-by: Edwin Török <edwin@etorok.net>
2023-12-18 14:08:53 -08:00
John MacFarlane 0849baef1e Add custom validate-docx.sh script.
This checks files other than document.xml in a docx container.
Thanks to @edwintorok.
2023-12-18 12:06:59 -08:00
John MacFarlane 1d2ccb41ed Makefile: Run built pandoc (instead of pandoc in path). 2023-12-18 11:39:07 -08:00
John MacFarlane 4ed45d6447 Makefile: Add validate-epub target. 2023-12-18 11:35:18 -08:00
John MacFarlane 72b9b3b70f Makefile: add validate-docx-golden-tests target. 2023-12-18 10:53:18 -08:00
John MacFarlane 24c50b9730 Makefile: add check that pandoc-cli depends on exact version of pandoc. 2023-12-12 13:40:42 -08:00
John MacFarlane 6e8fcda326 Makefile: add more prerelease checks.
Check for agreement of pandoc and pandoc-cli version.
Check for presence of changelog entry for this version.
Check that man pages specify this version.
2023-12-12 13:33:00 -08:00
John MacFarlane 55227a2027 Move man pages to pandoc-cli package.
Closes #9245.
2023-12-09 09:55:13 -08:00
John MacFarlane 5fe3396a22 Add Makefile targets for pandoc-lua.1, pandoc-server.1.
Regenerate these man pages.
2023-08-31 17:57:01 -07:00
John MacFarlane 19385e1833 Clean up pandoc's own man page. 2023-08-31 17:49:30 -07:00
John MacFarlane ccf72ddbd3 Set GHCOPTS and CABALOPTS in debpkg target. 2023-08-31 12:38:42 -07:00
John MacFarlane 889dcbe99c Use ghc 9.6 for release builds.
See #8947.
2023-08-04 13:54:04 -07:00
John MacFarlane ca0564084a Switch back to using ghc 9.2 for linux binary releases.
This should address the problem noted in #8947. With ghc 9.4+,
we were getting AVX instructions in the amd64 binary, which aren't
supported on older hardware. For maximum compatibility we switch
back to ghc 9.2, which doesn't cause the problem. However, we haven't
fully diagnosed the problem, and as documented ghc shouldn't be doing
this.

Note that this doesn't fix the similar problem for the Windows
build (#8955), since that uses stack; we'd need to switch to cabal or
use an older version of stackage lts.
2023-07-17 22:40:37 -07:00
John MacFarlane 1d9112f602 Makefile: use -j instead of -j4 2023-06-28 15:17:48 -07:00