Commit 7d7aa7d2 authored by Glenn Walbran's avatar Glenn Walbran

Add a bundle task to create a doc bundle (html/pdf/epub)

parent 9084d925
......@@ -128,10 +128,10 @@ devhelp:
@echo "# devhelp"
epub: fetchtranslations
#TODO delete the cp below when doc publishing no longer needs it. Because epub should depend on html
@$(foreach TRANSLATION,$(TRANSLATIONS), \
$(SPHINXBUILD) -a -D language=$(TRANSLATION) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub/$(TRANSLATION)/$(MAHARA); \
cp $(BUILDDIR)/epub/$(TRANSLATION)/$(MAHARA)/Mahara.epub $(BUILDDIR)/html/$(TRANSLATION)/$(MAHARA)/Mahara.epub; \
rm -r $(BUILDDIR)/epub/$(TRANSLATION)/$(MAHARA)/; \
echo "---------------"; \
)
@echo
......@@ -191,3 +191,12 @@ doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
bundle: html latexpdf epub
@$(foreach TRANSLATION,$(TRANSLATIONS), \
cp $(BUILDDIR)/latex/$(TRANSLATION)/$(MAHARA)/Mahara.pdf $(BUILDDIR)/html/$(TRANSLATION)/$(MAHARA)/Mahara.pdf; \
cp $(BUILDDIR)/epub/$(TRANSLATION)/$(MAHARA)/Mahara.epub $(BUILDDIR)/html/$(TRANSLATION)/$(MAHARA)/Mahara.epub; \
)
@tar -czf $(BUILDDIR)/mahara-manual$(MAHARA).tar.gz -C $(BUILDDIR)/html $(TRANSLATIONS)
@echo
@echo "Created bundle: $(BUILDDIR)/mahara-manual$(MAHARA).tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment