source: trunk/test/documentation_test.sh.in @ 1607

Last change on this file since 1607 was 1542, checked in by Peter, 13 years ago

fixes #446

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#!@SHELL@
2# @configure_input@
3
4# $Id: documentation_test.sh.in 1542 2008-09-30 19:44:23Z peter $
5
6# Copyright (C) 2008 Peter Johansson
7#
8# This file is part of the yat library, http://dev.thep.lu.se/yat
9#
10# The yat library is free software; you can redistribute it
11# and/or modify it under the terms of the GNU General Public License as
12# published by the Free Software Foundation; either version 3 of the
13# License, or (at your option) any later version.
14#
15# The yat library is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18# General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with yat. If not, see <http://www.gnu.org/licenses/>.
22#
23
24have_dox_tools="@have_dox_tools@"
25verbose=""
26while test $# -gt 0; do
27    case "$1" in
28        -v)
29        verbose="true"
30        ;;
31    esac
32    shift
33done
34
35if test $have_dox_tools = "no"; then
36    if (test $verbose); then
37        echo Skipped;
38    fi
39    exit 77;
40fi
41
42
43(cd @abs_top_builddir@/doc && make html > /dev/null )
44if test ! -e @abs_top_builddir@/doc/doxygen.error; then
45    if (test $verbose); then
46        echo Cannot find file: @abs_top_builddir@/doc/doxygen.error
47    fi
48    exit 1;
49fi
50if test -s @abs_top_builddir@/doc/doxygen.error; then
51    if (test $verbose); then
52        cat @abs_top_builddir@/doc/doxygen.error
53    fi
54    exit 1;
55fi
56if (test $verbose); then
57    echo Test is OK
58fi
59exit 0
Note: See TracBrowser for help on using the repository browser.