2020-05-19 18:20:34 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-11-17 03:17:24 -05:00
|
|
|
if [[ $(id -u) == 0 ]];
|
|
|
|
then
|
2020-11-25 16:55:46 -05:00
|
|
|
DESTDIR=/srv/http/resume
|
2020-11-17 03:17:24 -05:00
|
|
|
else
|
2020-11-25 16:55:46 -05:00
|
|
|
DESTDIR=/tmp/resume
|
2020-11-17 03:17:24 -05:00
|
|
|
fi
|
2020-11-25 16:55:46 -05:00
|
|
|
|
|
|
|
# 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
|