project-organization/support-self-hosting/make_pdf.sh
2018-09-09 20:20:59 +02:00

10 lines
273 B
Bash

mkdir -p .work
cp *.png .work/
CONTENT=$(pandoc --from=markdown --to=latex statuts-fr.md | sed 's@\\@\\\\@g' | sed ':a;N;$!ba;s@\n@\\n@g')
sed "s@{{CONTENT}}@${CONTENT}@g" template_latex.tex > .work/statuts-fr.tex
cd .work/
pdflatex statuts-fr.tex
cp statuts-fr.pdf ../