2014-11-28 02:09:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-11-28 02:12:19 +01:00
|
|
|
# Copyright 2014 Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
|
2017-04-25 21:00:21 +02:00
|
|
|
RIOTBASE=$(readlink -f "$(dirname $(realpath $0))/../../..")
|
|
|
|
|
2017-12-07 11:00:12 +01:00
|
|
|
ERRORS=$(make -C "${RIOTBASE}" doc 2>&1 | \
|
|
|
|
grep '.*warning' | \
|
|
|
|
sed "s#${PWD}/\([^:]*\)#\1#g")
|
2014-11-28 02:09:42 +01:00
|
|
|
|
2014-11-28 02:12:19 +01:00
|
|
|
if [ -n "${ERRORS}" ]
|
2014-11-28 02:09:42 +01:00
|
|
|
then
|
2017-04-25 21:00:21 +02:00
|
|
|
echo "ERROR: Doxygen generates the following warnings:"
|
2014-11-28 02:12:19 +01:00
|
|
|
echo "${ERRORS}"
|
2014-11-28 02:09:42 +01:00
|
|
|
exit 2
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|