Project

General

Profile

Bug #1291 ยป 0012-Filter-out-SDL3_rotozoom.-ch-from-files-to-src-check.patch

Marko Lindqvist, 04/19/2025 05:49 AM

View differences:

tests/copyright.sh
#!/bin/sh
#/***********************************************************************
# Freeciv - Copyright (C) 2004-2025
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#***********************************************************************/
files=`find $1 -name "*.c" -o -name "*.h" -o -name "*.cpp" \
| sort \
......
| fgrep -v "_gen." \
| grep -v "fc_config.h" \
| grep -v dependencies \
| grep -v SDL3_rotozoom \
| grep -v utility/md5\.. `
echo "# No Freeciv Copyright:"
echo "# Excludes: generated files, various 3rd party sources"
for file in $files; do
# echo "testing $file..."
grep "Freeciv - Copyright" $file >/dev/null || echo $file
done
echo
tests/header_guard.sh
#!/bin/sh
#/***********************************************************************
# Freeciv - Copyright (C) 2004-2025
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#***********************************************************************/
files=`find $1 -name "*.h" \
| sort \
......
| grep -v tolua_.*_gen\.h \
| grep -v fc_config\.h \
| grep -v dependencies \
| grep -v SDL3_rotozoom\.h \
| grep -v utility/md5\.h `
echo "# Header files without any include guard:"
    (1-1/1)