30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
YEAR=2019-2020
|
|
|
|
SSH_CONF=Embrevade
|
|
#SSH_TARGET_DIR=/var/docker/raw.opytex.org/www/
|
|
SSH_TARGET_DIR=~/raw.opytex.org/www/
|
|
|
|
CLEUSB=Cle8G
|
|
|
|
WEB_EXCLUDE=--exclude "Notes" --exclude "notes" --exclude "config.sh" --exclude 'Archive' --exclude 'tools/' --exclude "reflections"
|
|
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*"
|
|
|
|
clean:
|
|
git clean -idx -e venv/ -e video/
|
|
|
|
ssh_upload:
|
|
scp -r $(OUTPUTDIR)/* $(SSH_CONF):$(SSH_TARGET_DIR)
|
|
|
|
rsync_upload: clean
|
|
rsync -e "ssh" -P -rvzc --delete $(COMMON_EXCLUDE) $(WEB_EXCLUDE) $(CURDIR)/ $(SSH_CONF):$(SSH_TARGET_DIR) --cvs-exclude
|
|
|
|
rsync_cleUSB: clean
|
|
#rsync --progress --modify-window=1 --update --recursive --times --del ./ $(GIT_EXCLUDE) /run/media/lafrite/K1
|
|
rsync -av --del --exclude "venv" ./ $(COMMON_EXCLUDE) /run/media/lafrite/$(CLEUSB)/Enseignements
|
|
rsync -av ../../Divers/$(YEAR) /run/media/lafrite/$(CLEUSB)/Divers
|
|
#rsync -av ../../Production\ eleves/$(YEAR) /run/media/lafrite/$(CLEUSB)/Productions/
|
|
|
|
# rsync -av /run/media/lafrite/$(CLEUSB)/Productions/$(YEAR) ../../Production\ eleves/
|
|
|
|
.PHONY:
|