1#!/bin/sh 2 3me=$(git config user.name || echo WHO-AM-I) 4now=$(date +%Y) 5 6! git grep -l "Copyright .* $me" | 7grep -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) | 13grep ^$now | 14while read d t z f 15do grep -H -m 1 "Copyright .* $me" $f 16done | 17grep -v $now 18 19grep ^[.]Dd unifdef.1 | grep -v "$(date +'%B [0-9]*, %Y')" 20 21exit 0 22