Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Replace upload target with push.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyergler committed Mar 10, 2015
1 parent 8f3a23f commit 144ec32
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Makefile
Expand Up @@ -6,9 +6,6 @@ SPHINXOPTS =
SPHINXBUILD = ./bin/sphinx-build
PAPER = letter
BUILDDIR = _build
UPLOADTARGET = http://effectivedjango.com
UPLOADHOST = core
UPLOADPATH = /var/www/effectivedjango.com/www/

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
Expand All @@ -17,7 +14,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext check-syntax upload all
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext check-syntax push all

help:
@echo "Please use \`make <target>' where <target> is one of"
Expand Down Expand Up @@ -166,9 +163,11 @@ check-syntax:
$(SPHINXBUILD) -n -N -q -b html $(ALLSPHINXOPTS) $(BUILDDIR)/
$(SPHINXBUILD) -n -N -q -b slides $(ALLSPHINXOPTS) $(BUILDDIR)/slides

upload:
@echo
@echo "Updating $(UPLOADTARGET)"
rsync -rv _build/* $(UPLOADHOST):$(UPLOADPATH)
MESSAGE = $(shell git log -1 --pretty=format:"%s (%h)")

push:
git --git-dir=$(BUILDDIR)/.git add .
git --git-dir=$(BUILDDIR)/.git commit -m '$(MESSAGE)'
git --git-dir=$(BUILDDIR)/.git push origin gh-pages

all: clean html slides latexpdf epub

0 comments on commit 144ec32

Please sign in to comment.