16 lines
358 B
Bash
Executable File
16 lines
358 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
local build_dir=${1:-"${PWD}/build"}
|
|
local output_file=${2:-"${PWD}/Report.md"}
|
|
|
|
echo "Starting with build dir: ${build_dir}"
|
|
|
|
pandoc --pdf-engine=xelatex \
|
|
-H "${build_dir}/head.tex" \
|
|
-H "${build_dir}/footer.tex" \
|
|
-o "${output_file}" \
|
|
"${build_dir}/Report.md" \
|
|
"${build_dir}/Definitions.md"
|
|
|
|
echo "Wrote report to: ${output_file}"
|