#!/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