Skip to content
Snippets Groups Projects
Commit f8ef0fac authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix hasCopyright.sh script to work with latest copyright statement

Change-Id: I71b41d7837a0901c5d1ab718dc8f93e4122231fa
parent 73864ebe
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
for i in $@ ; do for i in $@ ; do
if test -f "$i" && test -s "$i" ; then if test -f "$i" && test -s "$i" ; then
if head -n 15 "$i" | grep Copyright > /dev/null 2>&1 ; then if head -n 35 "$1" | grep "qt-info@nokia.com" > /dev/null 2>&1 ; then
if head -n 15 "$i" | grep "No Commercial Usage" > /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" echo "$i: Copyright ok"
else else
echo "$i: WRONG COPYRIGHT" echo "$i: WRONG COPYRIGHT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment