resume/render.sh
2020-11-25 16:55:46 -05:00

18 lines
419 B
Bash
Executable File

#!/bin/bash
if [[ $(id -u) == 0 ]];
then
DESTDIR=/srv/http/resume
else
DESTDIR=/tmp/resume
fi
# Use -n to number sections.
asciidoctor -D ${DESTDIR} -o cv.html cv.adoc
asciidoctor -D ${DESTDIR} -n -o resume.html resume.adoc
#asciidoctor-pdf -a filetype=pdf -D ${DESTDIR} -d article cv.adoc
asciidoctor-pdf -a filetype=pdf -D ${DESTDIR} cv.adoc
asciidoctor-pdf -a filetype=pdf -D ${DESTDIR} -d article resume.adoc