Script: Update hasCopyright script

Update hasCopyright script to distinguish between no/wrong
copyright.
This commit is contained in:
Tobias Hunger
2011-02-21 14:24:22 +01:00
parent ed5f80048a
commit 1d3adef24a
+7 -4
View File
@@ -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