add deploy script

This commit is contained in:
Paul Lesur 2019-05-26 23:22:49 +02:00 committed by Paul Lesur
parent 7b5e61fe13
commit 3f1e3059de
2 changed files with 10 additions and 0 deletions

2
.gitignore vendored
View file

@ -13,3 +13,5 @@
*.fls
*.xdv
*.run.xml
.env

8
deploy.sh Executable file
View file

@ -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}