aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/hasCopyright.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/hasCopyright.sh b/scripts/hasCopyright.sh
index 82182fc1a4d..36ac95f91de 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