From f40d5e567ecd93cd927a23f2e092085d4caee2a4 Mon Sep 17 00:00:00 2001 From: Remington Steed Date: Fri, 10 Nov 2017 11:25:55 -0500 Subject: [PATCH] Add docs-building to wheezy installer Signed-off-by: Remington Steed --- installer/wheezy/eg_wheezy_installer.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 -- 2.11.0