summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/deheader.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-04 14:52:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-04 14:52:31 +0300
commit507769ef665ad23780d874e99e9b16c7cc74f28f (patch)
tree7d5bdad309056e9bf16dc2169e70c4433c5373a1 /tools/ci/scripts/deheader.sh
parent485ba81a87c50c23d1f97318e42f4937af1fda1f (diff)
downloadplus-507769ef665ad23780d874e99e9b16c7cc74f28f.tar.gz
plus-507769ef665ad23780d874e99e9b16c7cc74f28f.tar.bz2
plus-507769ef665ad23780d874e99e9b16c7cc74f28f.tar.xz
plus-507769ef665ad23780d874e99e9b16c7cc74f28f.zip
Add deheader into ci tools.
For now it running only for default flags and for default + SDL2.
Diffstat (limited to 'tools/ci/scripts/deheader.sh')
-rwxr-xr-xtools/ci/scripts/deheader.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/ci/scripts/deheader.sh b/tools/ci/scripts/deheader.sh
new file mode 100755
index 000000000..4106b0308
--- /dev/null
+++ b/tools/ci/scripts/deheader.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+export var=$1
+export name=${var%.*}
+export name=${name#./src/}
+export name=${name##*./}.h
+export dir=$(pwd)
+
+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 "\"utils/physfscheckutils.h\"" \
+-i "\"$name\"" \
+-m "$CXX -c -std=gnu++1z -Werror -Wall -Wextra -Wundef -Wmissing-declarations -DLOCALEDIR=\\\"\\\" $FLAGS -I/usr/include $INCLUDES -I${dir}/src" $1 \
+| grep -v "portability requires" | tee -a ${LOGFILE}