summaryrefslogtreecommitdiff
path: root/doc/map-viewer/tools/generate-franca-api-doc.sh
blob: e4e08fa32a147da62116ea561ab4d830304b49c4 (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: EnhancedPositionService
# 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=MapViewerAPI.pdf
FILE1=MapViewerAPI-part1.pdf
FILE2=MapViewerAPI-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