summaryrefslogtreecommitdiff
path: root/doc/speech/tool/generate_doc.sh
blob: e2f0f4e5d51d2a00aa55dbf6a087e14e868cde95 (plain)
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
41
42
43
44
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