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 @@ ...@@ -9,11 +9,14 @@
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 && if head -n 15 "$i" | grep Copyright > /dev/null 2>&1 ; then
head -n 15 "$i" | grep "No Commercial Usage" > /dev/null 2>&1 ; then if head -n 15 "$i" | grep "No Commercial Usage" > /dev/null 2>&1 ; then
echo "$i: Copyright." echo "$i: Copyright ok"
else
echo "$i: WRONG COPYRIGHT"
fi
else else
echo "$i: NO/WRONG COPYRIGHT." echo "$i: NO COPYRIGHT"
fi fi
fi fi
done 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