1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00

Added makefile target to update gh-pages branch

This commit is contained in:
Jonas Borgström 2013-06-26 13:30:55 +02:00
parent 06db9e897c
commit cbfdedc329

View file

@ -128,3 +128,12 @@ doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \ @echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt." "results in $(BUILDDIR)/doctest/output.txt."
gh-pages: html
GH_PAGES_CLONE="`mktemp -d`" && \
git clone --branch gh-pages `git rev-parse --show-toplevel` $$GH_PAGES_CLONE && \
(cd $$GH_PAGES_CLONE && git rm -r *) && \
cp -r _build/html/* $$GH_PAGES_CLONE && \
(cd $$GH_PAGES_CLONE && git add -A && git commit -m 'Updated gh-pages' && git push) && \
rm -rf $$GH_PAGES_CLONE