cv/deploy.sh
2019-08-23 15:03:18 +02:00

8 lines
260 B
Bash
Executable file

#!/bin/bash
# this should define:
# UNAME, HOST, PORT, DEST_DIR
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}