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.
|
|
|
|
|
2020-11-25 17:23:29 -05:00
|
|
|
asciidoctor -D ${DESTDIR}/cv -n -o index.html cv.adoc
|
|
|
|
asciidoctor -D ${DESTDIR}/resume -n -o index.html resume.adoc
|
2020-11-25 16:55:46 -05:00
|
|
|
|
|
|
|
#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
|