From 1d3adef24a42efd66462fa2f447d3455d8bbb3e9 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 21 Feb 2011 14:24:22 +0100 Subject: Script: Update hasCopyright script Update hasCopyright script to distinguish between no/wrong copyright. --- scripts/hasCopyright.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3