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
36 sudo make install || exit 1
39 if [ "${USE_CMAKE}" = 'NO' ] ; then
40 autoreconf -i || exit 1
41 ./configure ${EXTRA_ARGS} || exit 1
44 if [ ! -f doc/version.texi ]; then
45 echo "version.texi not generated";
50 sudo make install || exit 1
52 make doc/check_html || exit 1
53 if [ ! -d doc/check_html ]; then
54 echo "HTML documentation not generated"
58 make doc/doxygen || exit 1
59 if [ ! -d doc/doxygen ]; then
60 echo "Doxygen documentation not generated";
65 autoreconf -i || exit 1
68 export LD_LIBRARY_PATH=/usr/local/lib
71 cat tests/test-suite.log
72 cat tests/check_money.trs
73 if [ $test_result -ne 0 ]; then
79 if [ "${PRE_RELEASE_CHECK}" = 'YES' ]; then
80 autoreconf --install || exit 1
82 make prereleasecheck || exit 1
89 if [ "${SCAN_BUILD}" = 'YES' ]; then
90 autoreconf --install || exit 1
91 scan-build ./configure --enable-snprintf-replacement --enable-timer-replacement || exit 1
92 scan-build -o clang make || exit 1
93 if [ -n "$(find clang -type f)" ]; then
94 echo "scan-build found potential issues"
95 find clang -type f -print -exec cat \{} \;