Skip to content
This repository
tree: eff53c7fb5
Fetching contributors…

Cannot retrieve contributors at this time

file 40 lines (31 sloc) 1.504 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# -*- mode: Makefile; -*-

MANUAL_DST="www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals"
IMAGES_DST="www@www.arangodb.org:/var/www/www.arangodb.org/avoc/manuals/images"

OUTPUT_FOLDER="Doxygen/manuals/$(PACKAGE_VERSION)"

################################################################################
## publish
################################################################################

.PHONY: publish publish-wiki publish-html publish-pdf

publish: publish-wiki publish-html publish-pdf
cd Doxygen/manuals && scp -r "$(PACKAGE_VERSION)" $(MANUAL_DST)

publish-wiki:
(cd Doxygen/wiki && git checkout --force -- . && git clean -f -d -x && git pull)
$(MAKE) wiki
(cd Doxygen/wiki && git add *.md; git commit -m "`date`" -a; git push)

publish-html: $(OUTPUT_FOLDER)
$(MAKE) doxygen
@for w in $(WIKI); do cp Doxygen/html/$$w.html $(OUTPUT_FOLDER); done
@for i in `ls Doxygen/web/images/*.png`; do scp $$i $(OUTPUT_FOLDER)/images; done

publish-pdf: $(OUTPUT_FOLDER)
$(MAKE) latex
$(MAKE) latex
scp Doxygen/latex/dba-manual.pdf $(OUTPUT_FOLDER)
scp Doxygen/latex/implementor-manual.pdf $(OUTPUT_FOLDER)
scp Doxygen/latex/install-manual.pdf $(OUTPUT_FOLDER)
scp Doxygen/latex/user-manual.pdf $(OUTPUT_FOLDER)
scp Doxygen/latex/ref-manual.pdf $(OUTPUT_FOLDER)
scp Doxygen/latex/imp-manual.pdf $(OUTPUT_FOLDER)
scp arangod/Documentation/arangodb_1.0_shell_reference_card.pdf $(OUTPUT_FOLDER)

$(OUTPUT_FOLDER):
mkdir -p $(OUTPUT_FOLDER)
mkdir -p $(OUTPUT_FOLDER)/images
Something went wrong with that request. Please try again.