forked from qt-creator/qt-creator
Script: Update hasCopyright script
Update hasCopyright script to distinguish between no/wrong copyright.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user