Do not save duplicate allowed_... lists to rulesets when nationlist used.
[freeciv.git] / tests / copyright.sh
blobc8a6bf472643a117e8cd616e3872f89d567ae4ea
1 #!/bin/sh
3 files=`find $1 -name "*.c" -o -name "*.h" -o -name "*.cpp" \
4 | sort \
5 | grep -v "Freeciv.h" \
6 | fgrep -v "_gen." \
7 | grep -v "fc_config.h" \
8 | grep -v gtkpixcomm \
9 | grep -v mmx.h \
10 | grep -v xaw/canvas \
11 | grep -v pixcomm \
12 | grep -v dependencies \
13 | grep -v utility/md5\.. \
14 | grep -v client/gui-sdl/alphablit.c `
16 echo "# No Freeciv Copyright:"
17 echo "# Excludes: generated files, various 3rd party sources"
18 for file in $files; do
19 # echo "testing $file..."
20 grep "Freeciv - Copyright" $file >/dev/null || echo $file
21 done
22 echo
24 echo "# No or other GPL:"
25 for file in $files; do
26 grep "GNU General Public License" $file >/dev/null || echo $file
27 done
28 echo