Travis CI is no more
[unifdef.git] / scripts / copycheck.sh
blobc55cd1a22548793da2959688a8f76aff0374adb2
1 #!/bin/sh
3 me=$(git config user.name || echo WHO-AM-I)
4 now=$(date +%Y)
6 ! git grep -l "Copyright .* $me" |
7 grep -v 'tests/.*[.]exp[a-z]*' |
8 ( while read f
9 do git log --format="%ci $f" -1 -- $f
10 done;
11 git log --format="%ci COPYING" -1
12 ) |
13 grep ^$now |
14 while read d t z f
15 do grep -H -m 1 "Copyright .* $me" $f
16 done |
17 grep -v $now
19 grep ^[.]Dd unifdef.1 | grep -v "$(date +'%B [0-9]*, %Y')"
21 exit 0