From: Remington Steed Date: Fri, 10 Nov 2017 16:25:55 +0000 (-0500) Subject: Add docs-building to wheezy installer X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Frsteed%2Fwheezy_installer;p=working%2Frandom.git Add docs-building to wheezy installer Signed-off-by: Remington Steed --- diff --git a/installer/wheezy/eg_wheezy_installer.sh b/installer/wheezy/eg_wheezy_installer.sh index 947ff19d2..df0d0fa5b 100755 --- a/installer/wheezy/eg_wheezy_installer.sh +++ b/installer/wheezy/eg_wheezy_installer.sh @@ -52,6 +52,8 @@ function my_init { test_evergreen_live fi fi + docs_builder_prereqs + build_the_docs } function init_variables { @@ -182,6 +184,29 @@ function build_essentials { echo End of Installing some build essentials =~-._ } +function docs_builder_prereqs { + echo _.-~= Installing prereqs for building the documentation formats + date + # Install tools used for building the docs + apt-get -yq install asciidoc source-highlight fop; + echo Return Value = $? + + echo End of Installing prereqs for building the documentation formats =~-._ +} + +function build_the_docs { + echo _.-~= Building the AsciiDoc output formats + date + # build HTML + su - opensrf sh -c 'cd /home/opensrf/Evergreen/docs/ ; asciidoc root.adoc ; echo Return Value = $?' + # build PDF + su - opensrf sh -c 'cd /home/opensrf/Evergreen/docs/ ; a2x --fop --fop-opts="-q" root.adoc ; echo Return Value = $?' + # build EPUB + su - opensrf sh -c 'cd /home/opensrf/Evergreen/docs/ ; a2x --no-xmllint --format epub root.adoc ; echo Return Value = $?' + + echo End of Building the AsciiDoc output formats =~-._ +} + function setting_up_opensrf_env { echo _.-~= creating opensrf user and environment date