diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2011-02-21 14:24:22 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2011-02-21 14:44:54 +0100 |
commit | 1d3adef24a42efd66462fa2f447d3455d8bbb3e9 (patch) | |
tree | 172e632bd45c8878ebe93774109f45739b217b24 /scripts | |
parent | ed5f80048a22a1c019350a9aafdb968d2a533d2a (diff) |
Script: Update hasCopyright script
Update hasCopyright script to distinguish between no/wrong
copyright.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/hasCopyright.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/hasCopyright.sh b/scripts/hasCopyright.sh index 82182fc1a4..36ac95f91d 100755 --- a/scripts/hasCopyright.sh +++ b/scripts/hasCopyright.sh @@ -9,11 +9,14 @@ for i in $@ ; do if test -f "$i" && test -s "$i" ; then - if head -n 15 "$i" | grep Copyright > /dev/null 2>&1 && - head -n 15 "$i" | grep "No Commercial Usage" > /dev/null 2>&1 ; then - echo "$i: Copyright." + 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 + echo "$i: Copyright ok" + else + echo "$i: WRONG COPYRIGHT" + fi else - echo "$i: NO/WRONG COPYRIGHT." + echo "$i: NO COPYRIGHT" fi fi done |