Commit 5161555d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added script to deploy documentation to the web server

[ci skip]
parent 92150ce2
Loading
Loading
Loading
Loading

Documentation/deploy

0 → 100755
+16 −0
Original line number Diff line number Diff line
#!/bin/bash

OUTPUTDIR=./html
SSH_USER=tnl-doc
SSH_HOST=mmg-gitlab.fjfi.cvut.cz
SSH_PORT=22
SSH_TARGET_DIR=/srv/http/doc/tnl

set -e

# Run from this directory
cd ${0%/*}

[[ ! -d "$OUTPUTDIR" ]] && ./build

rsync -e "ssh -p $SSH_PORT" -P -rvzc --cvs-exclude --delete "$OUTPUTDIR/" "$SSH_USER@$SSH_HOST:$SSH_TARGET_DIR"