generate-eula-rtf

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