diff --git a/.gitignore b/.gitignore index 0c1bca4..20b96f5 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ *.fls *.xdv *.run.xml + +.env diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..5b743bf --- /dev/null +++ b/deploy.sh @@ -0,0 +1,8 @@ +#!/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}