the-source/src/build.sh
Christine Dodrill 66ac5c9d4e version 1.0.0
Signed-off-by: Christine Dodrill <me@christine.website>
2020-12-25 11:40:03 -05:00

61 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
VERSION=1.0.0
FILES="
title.txt
index.md
character-sheets.md
character-sheets/*.md
"
pandoc \
-o ../out/the_source-${VERSION}.epub \
--toc \
--toc-depth=2 \
--wrap=preserve \
--epub-chapter-level=2 \
--resource-path=. \
$FILES
pandoc \
-o ../out/the_source-${VERSION}.pdf \
--include-in-header sectionpagebreak.tex \
--variable=subparagraph \
--toc \
--toc-depth=2 \
--pdf-engine xelatex \
--resource-path=. \
$FILES
ebook-convert ../out/the_source-${VERSION}.epub ../out/the_source-${VERSION}.mobi
VERSION="${VERSION}-character-sheets"
FILES="
character-sheets-title.txt
character-sheets.md
character-sheets/*.md
"
pandoc \
-o ../out/the_source-${VERSION}.epub \
--toc \
--toc-depth=2 \
--wrap=preserve \
--epub-chapter-level=2 \
--resource-path=. \
$FILES
pandoc \
-o ../out/the_source-${VERSION}.pdf \
--include-in-header sectionpagebreak.tex \
--variable=subparagraph \
--toc \
--toc-depth=2 \
--pdf-engine xelatex \
--resource-path=. \
$FILES
ebook-convert ../out/the_source-${VERSION}.epub ../out/the_source-${VERSION}.mobi