File: genDoc

package info (click to toggle)
libbluedevil 1.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 420 kB
  • ctags: 187
  • sloc: cpp: 1,249; xml: 263; sh: 13; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 1,040 bytes parent folder | download
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
#!/usr/bin/env bash

#############################################################################
#                                                                           #
# Copyright (C) 2010 Rafael Fernández López <ereslibre@kde.org>             #
# Copyright (C) 2010 UFO Coders <info@ufocoders.com>                        #
#                                                                           #
# This file is distributed with the same license and terms as libbluedevil. #
#                                                                           #
#############################################################################

doxygen --version &> /dev/null

if [ $? -ne 0 ]; then
	echo "!!! Doxygen not installed. Please install it in order to generate documentation"
	exit 1
fi

rm -rf doc &> /dev/null
doxygen .doxyfile &> /dev/null

if [ $? -eq 0 ]; then
	echo "*** Documentation has been correctly generated under 'doc' directory"
	exit 0
fi

echo "!!! Documentation could not be generated due to an error"
exit 2