diff options
author | Iain McGinniss <iainmcgin@gmail.com> | 2013-02-19 15:28:12 +0000 |
---|---|---|
committer | Iain McGinniss <iainmcgin@gmail.com> | 2013-02-19 15:28:12 +0000 |
commit | 9a8134a539399d640401efdb21b74c0234cd4972 (patch) | |
tree | a3a230c7bbcf9b5d5ae668995c794e94ba1e5ea9 /build.sh | |
parent | ab50eec9e27e0820340658d55967d3446f5ba0ff (diff) | |
download | scala-9a8134a539399d640401efdb21b74c0234cd4972.tar.gz scala-9a8134a539399d640401efdb21b74c0234cd4972.tar.bz2 scala-9a8134a539399d640401efdb21b74c0234cd4972.zip |
PDF building now working with pandoc 1.10.1
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -1,5 +1,10 @@ #!/bin/sh -find . -name "*.md" | \ + +if [ ! -d build ]; then + mkdir -p build +fi + +echo "building Markdown source to build/ScalaReference.md" cat 01-title.md \ 02-preface.md \ 03-lexical-syntax.md \ @@ -17,8 +22,7 @@ cat 01-title.md \ 15-scala-syntax-summary.md \ 16-references.md > build/ScalaReference.md - - +echo "building HTML spec to build/ScalaReference.html" pandoc -f markdown \ -t html5 \ --standalone \ @@ -33,14 +37,15 @@ pandoc -f markdown \ cp -Rf resources build/ -# pdf generation - not working yet -#pandoc -f markdown \ -# --standalone \ -# --toc \ -# --chapters \ -# --number-sections \ -# --bibliography=Scala.bib \ -# --self-contained \ -# --latex-engine=xelatex \ -# -o build/ScalaReference.pdf \ -# build/ScalaReference.panmd
\ No newline at end of file +echo "building PDF spec to build/ScalaReference.pdf" +pandoc -f markdown \ + --standalone \ + --toc \ + --chapters \ + --number-sections \ + --bibliography=Scala.bib \ + --self-contained \ + --latex-engine=xelatex \ + --template=resources/scala-ref-template.latex \ + -o build/ScalaReference.pdf \ + build/ScalaReference.md
\ No newline at end of file |