2 # Copyright (C) 2016 Branden Archer <b.m.archer4@gmail.com>
3 # Copyright (C) 2016 Joshua D. Boyd <jdboyd@jdboyd.net>
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the
17 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 # Boston, MA 02111-1307, USA.
22 if [ -d doc/check_html ]; then
23 echo "The HTML output folder already exists";
27 if [ -d doc/doxygen ]; then
28 echo "The doxygen output folder already exists";
32 if [ "${USE_CMAKE}" = 'YES' ] ; then
37 sudo make install || exit 1
40 if [ "${USE_CMAKE}" = 'NO' ] ; then
41 autoreconf -i || exit 1
42 ./configure ${EXTRA_ARGS} --disable-build-docs || exit 1
45 if [ -f doc/version.texi ]; then
46 echo "Documentation was generated (doc/version.texi), though disabled";
51 sudo make install || exit 1
53 make doc/check_html || exit 1
54 if [ ! -d doc/check_html ]; then
55 echo "HTML documentation not generated"
59 make doc/doxygen || exit 1
60 if [ ! -d doc/doxygen ]; then
61 echo "Doxygen documentation not generated";
66 autoreconf -i || exit 1
69 export LD_LIBRARY_PATH=/usr/local/lib
72 cat tests/test-suite.log
73 cat tests/check_money.trs
74 if [ $test_result -ne 0 ]; then
80 if [ "${PRE_RELEASE_CHECK}" = 'YES' ]; then
81 autoreconf --install || exit 1
83 make prereleasecheck || exit 1
91 if [ "${SCAN_BUILD}" = 'YES' ]; then
92 autoreconf --install || exit 1
93 scan-build ./configure --enable-snprintf-replacement --enable-timer-replacement || exit 1
94 scan-build -o clang make || exit 1
95 if [ -n "$(find clang -type f)" ]; then
96 echo "scan-build found potential issues"
97 find clang -type f -print -exec cat \{} \;