Add some magic

This commit is contained in:
Luke Murphy 2020-03-11 16:26:34 +01:00
parent 6f966158c3
commit 5b20f1b549
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 2 deletions

View File

@ -96,8 +96,10 @@ stopserver:
$(BASEDIR)/develop_server.sh stop
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
# Note: sorry ...
MAGIC = $$(basename $$PWD)
publish:
$(PELICAN) $(INPUTDIR) -o /var/www/html/ -s $(PUBLISHCONF) $(PELICANOPTS)
$(PELICAN) $(INPUTDIR) -o "/var/www/manymanymany-varia-websites/$(MAGIC)" -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)

View File

@ -96,8 +96,10 @@ stopserver:
$(BASEDIR)/develop_server.sh stop
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
# Note: sorry ...
MAGIC = $$(basename $$PWD)
publish:
$(PELICAN) $(INPUTDIR) -o /var/www/html/ -s $(PUBLISHCONF) $(PELICANOPTS)
$(PELICAN) $(INPUTDIR) -o "/var/www/manymanymany-varia-websites/$(MAGIC)" -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)