summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-05-06 14:59:43 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-05-06 15:16:59 +0200
commitf8ef0fac136d48e4ddc1df260bab4344ca812bc8 (patch)
treeac1d92f7f95ba023201f9d23ff28670daa39db7f
parent73864ebefc3444dd4b4ab487362a6b8962f1a3ee (diff)
downloadqt-creator-f8ef0fac136d48e4ddc1df260bab4344ca812bc8.tar.gz
Fix hasCopyright.sh script to work with latest copyright statement
Change-Id: I71b41d7837a0901c5d1ab718dc8f93e4122231fa
-rwxr-xr-xscripts/hasCopyright.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/hasCopyright.sh b/scripts/hasCopyright.sh
index 36ac95f91d..a16c2f18ad 100755
--- a/scripts/hasCopyright.sh
+++ b/scripts/hasCopyright.sh
@@ -9,8 +9,11 @@
for i in $@ ; do
if test -f "$i" && test -s "$i" ; then
- if head -n 15 "$i" | grep Copyright > /dev/null 2>&1 ; then
- if head -n 15 "$i" | grep "No Commercial Usage" > /dev/null 2>&1 ; then
+ if head -n 35 "$1" | grep "qt-info@nokia.com" > /dev/null 2>&1 ; then
+ echo "$i: OLD EMAIL IN USE!"
+ elif head -n 35 "$i" | grep Copyright > /dev/null 2>&1 ; then
+ if head -n 35 "$i" | grep "GNU Lesser General Public License" > /dev/null 2>&1 &&
+ head -n 35 "$i" | grep "Other Usage" > /dev/null 2>&1 ; then
echo "$i: Copyright ok"
else
echo "$i: WRONG COPYRIGHT"