summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/deheader2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/jobs/deheader2.sh')
-rwxr-xr-xtools/ci/jobs/deheader2.sh30
1 files changed, 16 insertions, 14 deletions
diff --git a/tools/ci/jobs/deheader2.sh b/tools/ci/jobs/deheader2.sh
index afd0f02c3..5862e555e 100755
--- a/tools/ci/jobs/deheader2.sh
+++ b/tools/ci/jobs/deheader2.sh
@@ -14,20 +14,22 @@ if [[ -n "${DATA}" ]]; then
exit 1
fi
-grep "deheader:" ${LOGFILE} \
-| grep -v "deheader: remove <climits> from ./src/being/localplayer.cpp" \
-| grep -v "deheader: remove <fstream> from ./src/utils/files.cpp" \
-| grep -v "deheader: remove <climits> from ./src/resources/map/map.cpp" \
-| grep -v "deheader: remove <sys/time.h> from ./src/resources/wallpaper.cpp" \
-| grep -v "deheader: remove <linux/tcp.h> from ./src/net/sdltcpnet.cpp" \
-| grep -v "deheader: remove <netdb.h> from ./src/net/sdltcpnet.cpp" \
-| grep -v "deheader: remove <netinet/in.h> from ./src/net/sdltcpnet.cpp" \
-| grep -v "deheader: remove <climits> from ./src/resources/map/map.cpp" \
-| grep -v "deheader: remove <vector> from ./src/utils/vector.h" \
-| grep -v "has more than one inclusion of \"resources/dye/dyepalette_replace" \
-| grep -v "/sdl2gfx/" \
-| grep -v "doctest.h" \
-| grep -v "deheader: remove <climits> from ./src/units.cpp" > ${LOGFILE2}
+grep "deheader:" "${LOGFILE}" \
+ | grep -v \
+ -e "deheader: remove <climits> from ./src/being/localplayer.cpp" \
+ -e "deheader: remove <fstream> from ./src/utils/files.cpp" \
+ -e "deheader: remove <climits> from ./src/resources/map/map.cpp" \
+ -e "deheader: remove <sys/time.h> from ./src/resources/wallpaper.cpp" \
+ -e "deheader: remove <linux/tcp.h> from ./src/net/sdltcpnet.cpp" \
+ -e "deheader: remove <netdb.h> from ./src/net/sdltcpnet.cpp" \
+ -e "deheader: remove <netinet/in.h> from ./src/net/sdltcpnet.cpp" \
+ -e "deheader: remove <climits> from ./src/resources/map/map.cpp" \
+ -e "deheader: remove <vector> from ./src/utils/vector.h" \
+ -e "has more than one inclusion of \"resources/dye/dyepalette_replace" \
+ -e "/sdl2gfx/" \
+ -e "doctest.h" \
+ -e "deheader: remove <climits> from ./src/units.cpp" \
+ > "${LOGFILE2}"
export DATA=$(cat ${LOGFILE2})
if [[ -n "${DATA}" ]]; then