1 | #!@SHELL@ |
---|
2 | # @configure_input@ |
---|
3 | |
---|
4 | # $Id: documentation_test.sh.in 2202 2010-02-21 18:39:13Z peter $ |
---|
5 | |
---|
6 | # Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
---|
7 | # Copyright (C) 2009, 2010 Peter Johansson |
---|
8 | # |
---|
9 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
10 | # |
---|
11 | # The yat library is free software; you can redistribute it |
---|
12 | # and/or modify it under the terms of the GNU General Public License as |
---|
13 | # published by the Free Software Foundation; either version 3 of the |
---|
14 | # License, or (at your option) any later version. |
---|
15 | # |
---|
16 | # The yat library is distributed in the hope that it will be useful, |
---|
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
19 | # General Public License for more details. |
---|
20 | # |
---|
21 | # You should have received a copy of the GNU General Public License |
---|
22 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
23 | # |
---|
24 | |
---|
25 | have_doxygen="@have_doxygen@" |
---|
26 | |
---|
27 | while test $# -gt 0; do |
---|
28 | case "$1" in |
---|
29 | -v) |
---|
30 | VERBOSE=1 |
---|
31 | ;; |
---|
32 | esac |
---|
33 | shift |
---|
34 | done |
---|
35 | |
---|
36 | if test -n "$YAT_TEST_VERBOSE"; then |
---|
37 | VERBOSE=YAT_TEST_VERBOSE; |
---|
38 | echo "WARNING: environment variable \`YAT_TEST_VERBOSE' is deprecated;"; |
---|
39 | echo " use \`VERBOSE' instead."; |
---|
40 | fi |
---|
41 | |
---|
42 | if test -z "$VERBOSE"; then |
---|
43 | exec > /dev/null 2>&1 |
---|
44 | fi |
---|
45 | |
---|
46 | if test $have_doxygen = "no"; then |
---|
47 | echo Skipped; |
---|
48 | exit 77; |
---|
49 | fi |
---|
50 | |
---|
51 | echo @ECHO_N@ "doxygen " |
---|
52 | @DOXYGEN@ --version |
---|
53 | (cd @abs_top_builddir@/doc && make doc < /dev/null) || exit 1 |
---|
54 | if test ! -e @abs_top_builddir@/doc/doxygen.error; then |
---|
55 | echo Cannot find file: @abs_top_builddir@/doc/doxygen.error |
---|
56 | exit 1; |
---|
57 | fi |
---|
58 | if test -s @abs_top_builddir@/doc/doxygen.error; then |
---|
59 | |
---|
60 | cat @abs_top_builddir@/doc/doxygen.error |
---|
61 | exit 1; |
---|
62 | fi |
---|
63 | echo Test is OK |
---|
64 | |
---|
65 | exit 0 |
---|