test_evergreen_live
fi
fi
+ docs_builder_prereqs
+ build_the_docs
}
function init_variables {
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