Travis: no -i option for sed because it needs a special parameter on macOS but not on other systems.

This commit is contained in:
Wandmalfarbe 2017-11-01 13:23:30 +01:00
parent 46466829aa
commit b18db6b69f

View File

@ -31,11 +31,9 @@ pdftoppm -r 150 -png "without-listings/without-listings.pdf" > "without-listings
pandoc "green-titlepage/green-titlepage.md" -o "green-titlepage/green-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
pdftoppm -r 150 -png "green-titlepage/green-titlepage.pdf" > "green-titlepage/green-titlepage.png"
# create a new template file for typesetting books
cp "../eisvogel.tex" "../eisvogel-book.latex"
# replace the document class `scrartcl` with `scrbook
sed -i '' 's/scrartcl/scrbook/g' "../eisvogel-book.latex"
sed 's/scrartcl/scrbook/g' <"../eisvogel.latex" >"../eisvogel-book.latex"
pandoc "book/book.md" -o "book/book.pdf" --from markdown --template "../eisvogel-book.latex" --listings -V classoption=oneside --top-level-division=chapter
pdftoppm -r 150 -png "book/book.pdf" > "book/book.png"