https://khasmek.github.io/you-seen-this
You will need to install Xcode Developer Tools as well as the Command Line Tools. See here (developer account required).
Add export PATH=/Library/TeX/texbin:$PATH to your .bashrc.
From the root dir just run make. The build subdir will contain the pdf and epub output.
You will need to install the git, make, texlive, texlive-xetex and pandoc packages.
From the root dir just run make. The build subdir will contain the pdf and epub output.