2024-11-22 16:24:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export PARTY1="Acme Co"
|
|
|
|
export PARTY2="Joint Venture Co"
|
|
|
|
|
2024-11-22 17:26:50 +00:00
|
|
|
|
|
|
|
# Expand variables into an intermediate markdown file for conversion to PDF
|
|
|
|
|
2024-11-22 16:24:09 +00:00
|
|
|
./mo DealMemoInput.md > DealMemoRendered.md
|
2024-11-22 17:26:50 +00:00
|
|
|
|
|
|
|
# Generate the PDF
|
|
|
|
|
2024-11-27 15:11:22 +00:00
|
|
|
pandoc \
|
|
|
|
DealMemoRendered.md \
|
|
|
|
--template eisvogel \
|
|
|
|
--metadata-file=DealMemo.yml \
|
|
|
|
--from markdown \
|
|
|
|
--output DealMemo.pdf \
|