cv/deploy.sh
2019-08-23 15:04:20 +02:00

7 lines
278 B
Bash
Executable file

#!/bin/bash
# this should define:
# UNAME, HOST, PORT, DEST_DIR, DEST_FILE
source .env && \
latexmk cv.tex -xelatex && \
rsync --archive -hh --partial --info=stats1 --info=progress2 --modify-window=1 -e "ssh -p ${PORT}" cv.pdf ${UNAME}@${HOST}:${DEST_DIR}/${DEST_FILE}