summaryrefslogtreecommitdiff
path: root/doc/speech/tool/generate_doc.sh
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-02-24 12:18:38 +0100
committerasanoaozora <fifitaneki@hotmail.com>2017-02-24 12:18:38 +0100
commit292d2ab9d3a9ded69f0135e23ace632fa9021d80 (patch)
treeff17caf50417f8acad754364bf95e2145a2570a8 /doc/speech/tool/generate_doc.sh
parente3a386392d5135be1ab6493fd71d84453139660d (diff)
downloadpoi-service-292d2ab9d3a9ded69f0135e23ace632fa9021d80.tar.gz
fix some README, add the draft of Speech component specification
Diffstat (limited to 'doc/speech/tool/generate_doc.sh')
-rwxr-xr-xdoc/speech/tool/generate_doc.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/speech/tool/generate_doc.sh b/doc/speech/tool/generate_doc.sh
new file mode 100755
index 0000000..e2f0f4e
--- /dev/null
+++ b/doc/speech/tool/generate_doc.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+###########################################################################
+# @licence app begin@
+# SPDX-License-Identifier: MPL-2.0
+#
+# Component Name: SpeechOutputService
+# Author: Marco Residori
+#
+# Copyright (C) 2017, Mentor Graphics
+#
+# License:
+# This Source Code Form is subject to the terms of the
+# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
+# this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# @licence end@
+###########################################################################
+
+OUTPUT_DIR=..
+
+OUTPUT_FILE=SpeechOutputService_ComponentSpecification.pdf
+FILE1=GENIVI_SpeechOutputService_ComponentSpecification-part1.pdf
+FILE2=GENIVI_SpeechOutputService_ComponentSpecification-part2.pdf
+
+doxygen Doxyfile
+
+cd latex
+make pdf
+cd ..
+
+if [ -f latex/refman.pdf ];
+ then
+ #copy the file containing the doxygen documentation
+ cp latex/refman.pdf $FILE2
+ #concatenate pdf files
+ pdftk $FILE1 $FILE2 cat output $OUTPUT_DIR/$OUTPUT_FILE
+ #show output file
+ evince $OUTPUT_DIR/$OUTPUT_FILE &
+ rm $FILE2
+ rm -rf latex
+ rm -rf doxygen_sqlite3.db
+ else
+ echo "Error generating pdf file"
+fi