more work on check_licenses script
authorHenning Rogge <hrogge@googlemail.com>
Mon, 20 May 2013 11:10:06 +0000 (13:10 +0200)
committerHenning Rogge <hrogge@googlemail.com>
Mon, 20 May 2013 11:10:06 +0000 (13:10 +0200)
files/check_licences.sh

index 7c457be..8c0e726 100755 (executable)
@@ -5,11 +5,11 @@ LEN=`cat ./files/default_licence.txt |wc -c`
 OKAY=0
 BAD=0
 
-EXCEPT=./src-plugins/nl80211_listener/nl80211.h
-for file in $(eval find ./src* -type f -name *[.][ch] -not -wholename $EXCEPT)
+EXCEPT="-not -wholename ./src-plugins/nl80211_listener/nl80211.h"
+for file in $(eval find ./src* -type f -name *[.][ch] ${EXCEPT})
 do
-       cmp --bytes $LEN $file ./files/default_licence.txt
-       if [ $? != 0 ]
+       cmp --bytes ${LEN} ${file} ./files/default_licence.txt
+       if [ ${?} != 0 ]
        then
                BAD=$((${BAD} + 1))
        else