generate-terms-rtf
1#!/usr/bin/env bash
2
3set -e
4
5if ! command -v pandoc &> /dev/null
6then
7 brew install pandoc # Install pandoc using Homebrew
8fi
9
10pandoc ./legal/terms.md -f markdown-smart -t html -o ./script/terms/terms.html
11textutil -convert rtf ./script/terms/terms.html -output ./script/terms/terms.rtf
12rm ./script/terms/terms.html