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