added rsync_upload to the generated Makefile

This commit is contained in:
Albrecht Mühlenschulte 2012-04-06 21:54:11 +02:00
commit 7b657032ae

View file

@ -36,6 +36,7 @@ help:
\t@echo ' ftp_upload upload the web site using FTP ' \t@echo ' ftp_upload upload the web site using FTP '
\t@echo ' ssh_upload upload the web site using SSH ' \t@echo ' ssh_upload upload the web site using SSH '
\t@echo ' dropbox_upload upload the web site using Dropbox ' \t@echo ' dropbox_upload upload the web site using Dropbox '
\t@echo ' rsync_upload upload the web site using rsync/ssh'
\t@echo ' ' \t@echo ' '
@ -58,6 +59,9 @@ rsync_upload: $$(OUTPUTDIR)/index.html
ssh_upload: $$(OUTPUTDIR)/index.html ssh_upload: $$(OUTPUTDIR)/index.html
\tscp -r $$(OUTPUTDIR)/* $$(SSH_USER)@$$(SSH_HOST):$$(SSH_TARGET_DIR) \tscp -r $$(OUTPUTDIR)/* $$(SSH_USER)@$$(SSH_HOST):$$(SSH_TARGET_DIR)
rsync_upload: $$(OUTPUTDIR)/index.
\trsync -e ssh -P -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
ftp_upload: $$(OUTPUTDIR)/index.html ftp_upload: $$(OUTPUTDIR)/index.html
\tlftp ftp://$$(FTP_USER)@$$(FTP_HOST) -e "mirror -R $$(OUTPUTDIR) $$(FTP_TARGET_DIR) ; quit" \tlftp ftp://$$(FTP_USER)@$$(FTP_HOST) -e "mirror -R $$(OUTPUTDIR) $$(FTP_TARGET_DIR) ; quit"
@ -65,7 +69,7 @@ github: $$(OUTPUTDIR)/index.html
\tghp-import $$(OUTPUTDIR) \tghp-import $$(OUTPUTDIR)
\tgit push origin gh-pages \tgit push origin gh-pages
.PHONY: html help clean ftp_upload ssh_upload dropbox_upload github .PHONY: html help clean ftp_upload ssh_upload rsync_upload dropbox_upload github
''', ''',
'pelican.conf.py': '''#!/usr/bin/env python 'pelican.conf.py': '''#!/usr/bin/env python