2024-11-22 16:24:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-12-09 16:13:44 +00:00
|
|
|
export PARTY1="Wyble Family Office LLC"
|
2024-12-09 14:26:02 +00:00
|
|
|
export PARTY2="ProForma Party 2"
|
2024-12-09 16:13:44 +00:00
|
|
|
export DEAL_MEMO_RENDERED_MD="DealMemoRendered.md"
|
|
|
|
export DEAL_MEMO_RENDERED_PDF="DealMemoRendered.pdf"
|
2024-11-22 17:26:50 +00:00
|
|
|
|
|
|
|
# Expand variables into an intermediate markdown file for conversion to PDF
|
|
|
|
|
2024-12-09 16:13:44 +00:00
|
|
|
./mo DealMemoInput.md > $DEAL_MEMO_RENDERED_MD
|
2024-11-22 17:26:50 +00:00
|
|
|
|
2024-12-09 16:13:44 +00:00
|
|
|
# Convert to PDF
|
2024-11-22 17:26:50 +00:00
|
|
|
|
2024-11-27 15:11:22 +00:00
|
|
|
pandoc \
|
2024-12-09 16:13:44 +00:00
|
|
|
$DEAL_MEMO_RENDERED_MD \
|
2024-11-27 15:11:22 +00:00
|
|
|
--template eisvogel \
|
|
|
|
--metadata-file=DealMemo.yml \
|
|
|
|
--from markdown \
|
2024-12-09 16:13:44 +00:00
|
|
|
--output $DEAL_MEMO_RENDERED_PDF
|