mirror of
https://git.themanaworld.org/mana/verse
synced 2026-08-16 04:23:07 -04:00
45 lines
1.3 KiB
Bash
Executable file
45 lines
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
export var=$1
|
|
export name=${var%.*}
|
|
export name=${name#./src/}
|
|
export name=${name##*./}.h
|
|
export dir=$(pwd)
|
|
|
|
if [[ $var =~ .*(/sdl2gfx/|src/debug/).* ]]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$skipPath" != "" ];
|
|
then
|
|
if [[ $var =~ .*($skipPath).* ]]
|
|
then
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
echo $1 >>${LOGFILE}
|
|
echo $1
|
|
|
|
"${dir}/deheader" -q \
|
|
-i "\"debug.h\"" \
|
|
-i "\"utils/checkutils.h\"" \
|
|
-i "\"utils/sdlcheckutils.h\"" \
|
|
-i "\"sdlshared.h\"" \
|
|
-i "\"localconsts.h\"" \
|
|
-i "\"utils/fuzzer.h\"" \
|
|
-i "\"$name\"" \
|
|
-c "$CXX" \
|
|
-d "$FLAGS" \
|
|
-s "-std=gnu++1z" \
|
|
-m "-c -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DUCHAR_TYPE=uint16_t -DLOCALEDIR=\\\"\\\" -I/usr/include $INCLUDES -I${dir}/src" \
|
|
"$1" 2>&1 \
|
|
| grep -v \
|
|
-e "deheader: ./src/net/sdltcpnet.cpp has more than one inclusion of <netinet/tcp.h>" \
|
|
-e "deheader: remove <netinet/tcp.h> from ./src/net/sdltcpnet.cpp" \
|
|
-e "deheader: remove <climits> from ./src/resources/db/unitsdb.cpp" \
|
|
-e "portability requires" \
|
|
-e "SDL2_rotozoom.cpp" \
|
|
-e "doctest.h" \
|
|
| tee -a "${LOGFILE}"
|