From 3de634656506ebadd9701f6ef7ab3f468e7422bf Mon Sep 17 00:00:00 2001 From: "Murray S. Kucherawy" Date: Tue, 22 May 2012 21:56:32 -0700 Subject: [PATCH] Copyright check script --- copyright-check | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 copyright-check diff --git a/copyright-check b/copyright-check new file mode 100755 index 00000000..44b7a052 --- /dev/null +++ b/copyright-check @@ -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