Skip to content

Commit

Permalink
Copyright check script
Browse files Browse the repository at this point in the history
  • Loading branch information
Murray S. Kucherawy committed May 23, 2012
1 parent 87ed518 commit 3de6346
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions copyright-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
#
# Copyright (c) 2011, 2012, The Trusted Domain Project. All rights reserved.
#

YEAR=`date +%Y`
LASTYEAR=$(($YEAR - 1))

for i in `git diff develop --name-only @{$LASTYEAR-12-31} | fgrep -v .jpg | fgrep -v contrib/ | fgrep -v docs/`
do
if test -f $i
then
if grep -q Copyright $i
then
if ! grep -q Copyright.\*$YEAR $i
then
echo $i
fi
fi
fi
done

0 comments on commit 3de6346

Please sign in to comment.