From d078a14549c469fc58917e0e4fe3f20302c7703e Mon Sep 17 00:00:00 2001 From: Igmar Palsenberg Date: Wed, 29 Dec 2021 19:01:46 +0100 Subject: [PATCH] Fixes #1 --- makepdf.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 makepdf.sh diff --git a/makepdf.sh b/makepdf.sh new file mode 100755 index 0000000..3eb44de --- /dev/null +++ b/makepdf.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +if [ ! -x "$(command -v pandoc)" ]; then + echo "This conversion requires pandoc installed." + echo "On Fedora, run 'dnf install pandoc'" + exit 1 +fi + +if [ ! -x "$(command -v wkhtmltopdf)" ]; then + echo "This conversion requires wkhtmltopdf installed." + echo "On Fedora, run 'dnf install wkhtmltopdf'" + exit 1 +fi + +pandoc -f gfm -t html5 --metadata pagetitle="MSX2 Technical Handbook" md/Chapter*.md md/Appendix?.md md/Appendices8and10.md -o msx2-technical-handbook.pdf