Feat: clean rsync commands
This commit is contained in:
parent
1ad4a3b20b
commit
39241ee741
5
Makefile
5
Makefile
|
@ -14,6 +14,7 @@ SSH_USER=sshcontent
|
|||
SSH_TARGET_DIR=/var/www
|
||||
SSH_TARGET_DIR=/home/sshcontent/opytex.org/www/
|
||||
|
||||
RSYNC_EXCLUDE=--exclude "pymath" --exclude "opytex" --exclude "enseignements"
|
||||
|
||||
DEBUG ?= 0
|
||||
ifeq ($(DEBUG), 1)
|
||||
|
@ -83,9 +84,9 @@ ssh_upload: publish
|
|||
|
||||
rsync_upload: publish
|
||||
#rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --cvs-exclude --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
|
||||
rsync -e "ssh" -P -rvzc --delete --exclude "pymath" --exclude "opytex" $(OUTPUTDIR)/ $(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
|
||||
rsync -e "ssh" -P -rvzc --delete $(RSYNC_EXCLUDE) $(OUTPUTDIR)/ $(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
|
||||
|
||||
fake_upload: html
|
||||
rsync -P -rvzc --delete $(OUTPUTDIR)/ ../output/ --cvs-exclude
|
||||
rsync -P -rvzc --delete $(RSYNC_EXCLUDE) $(OUTPUTDIR)/ ../output/ --cvs-exclude
|
||||
|
||||
.PHONY: html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload
|
||||
|
|
Loading…
Reference in New Issue