[tor-commits] [ooni-probe/master] Add rsync support to doc Makefile

art at torproject.org art at torproject.org
Tue Aug 12 18:08:13 UTC 2014


commit b2a05794f32510fa79b7811685f30d882531993d
Author: Arturo Filastò <art at fuffa.org>
Date:   Sun Aug 10 20:11:15 2014 +0200

    Add rsync support to doc Makefile
---
 docs/Makefile |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/docs/Makefile b/docs/Makefile
index 9ee92b1..b9582d9 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -14,6 +14,11 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
 # the i18n builder cannot share the environment and doctrees with the others
 I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
 
+SSH_HOST=staticiforme.torproject.org
+SSH_PORT=22
+SSH_USER=art
+SSH_TARGET_DIR=/home/art/docs/
+
 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
 
 help:
@@ -151,3 +156,6 @@ doctest:
 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
 	@echo "Testing of doctests in the sources finished, look at the " \
 	      "results in $(BUILDDIR)/doctest/output.txt."
+
+rsync_upload:
+	rsync -e "ssh -p $(SSH_PORT)" -P -rvz $(BUILDDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude





More information about the tor-commits mailing list