Feat: add FAKEDIR and remove RSYNC_EXCLUDE
This commit is contained in:
parent
9037131275
commit
c015b18394
5
Makefile
5
Makefile
@ -9,6 +9,7 @@ INPUTDIR=$(BASEDIR)/content
|
|||||||
OUTPUTDIR=$(BASEDIR)/output
|
OUTPUTDIR=$(BASEDIR)/output
|
||||||
CONFFILE=$(BASEDIR)/pelicanconf.py
|
CONFFILE=$(BASEDIR)/pelicanconf.py
|
||||||
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||||
|
FAKEDIR=../../output/
|
||||||
|
|
||||||
FTP_HOST=localhost
|
FTP_HOST=localhost
|
||||||
FTP_USER=anonymous
|
FTP_USER=anonymous
|
||||||
@ -19,8 +20,6 @@ SSH_CONF=Embrevade
|
|||||||
#SSH_TARGET_DIR=/var/docker/opytex.org/www/
|
#SSH_TARGET_DIR=/var/docker/opytex.org/www/
|
||||||
SSH_TARGET_DIR=/home/sshcontent/opytex.org/www/$(YEARSUBFOLDER)
|
SSH_TARGET_DIR=/home/sshcontent/opytex.org/www/$(YEARSUBFOLDER)
|
||||||
|
|
||||||
RSYNC_EXCLUDE=--exclude "pymath" --exclude "opytex" --exclude "enseignements"
|
|
||||||
|
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
PELICANOPTS += -D
|
PELICANOPTS += -D
|
||||||
@ -87,6 +86,6 @@ rsync_upload: publish
|
|||||||
rsync -e "ssh" -P -rvzc --delete $(RSYNC_EXCLUDE) $(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
|
fake_upload: html
|
||||||
rsync -P -rvzc --delete $(RSYNC_EXCLUDE) $(OUTPUTDIR)/ ../output/ --cvs-exclude
|
rsync -P -rvzc --delete $(OUTPUTDIR)/ $(FAKEDIR)$(YEARSUBFOLDER) --cvs-exclude
|
||||||
|
|
||||||
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github import_ens
|
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github import_ens
|
||||||
|
Loading…
Reference in New Issue
Block a user