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

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

closes #162 - if you have doxygen available there will be a test that html documentation is ok (i.e. no warnings from doxygen)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
RevLine 
[1367]1#!@SHELL@
2# @configure_input@
3
4# $Id: documentation_test.sh.in 1367 2008-07-10 23:07:52Z peter $
5
6# Copyright (C) 2008 Peter Johansson
7#
8# This file is part of the yat library, http://trac.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 2 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 this program; if not, write to the Free Software
22# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23# 02111-1307, USA.
24#
25
26verbose=""
27while test $# -gt 0; do
28    case "$1" in
29        -v)
30        verbose="true"
31        ;;
32    esac
33    shift
34done
35
36
37(cd @abs_top_builddir@/doc && make html > /dev/null )
38if test ! -e @abs_top_builddir@/doc/doxygen.error; then
39    if (test $verbose); then
40        echo Cannot find file: @abs_top_builddir@/doc/doxygen.error
41    fi
42    exit 1;
43fi
44if test -s @abs_top_builddir@/doc/doxygen.error; then
45    if (test $verbose); then
46        cat @abs_top_builddir@/doc/doxygen.error
47    fi
48    exit 1;
49fi
50if (test $verbose); then
51    echo Test is OK
52fi
53exit 0
Note: See TracBrowser for help on using the repository browser.