Commit 1d3adef2 authored by Tobias Hunger's avatar Tobias Hunger

Script: Update hasCopyright script

Update hasCopyright script to distinguish between no/wrong
copyright.
parent ed5f8004
......@@ -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: NO/WRONG COPYRIGHT."
echo "$i: WRONG COPYRIGHT"
fi
else
echo "$i: NO COPYRIGHT"
fi
fi
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment