Small cleanup in DLEP code to make sure session cleanup does not block
[oonf.git] / files / check_licences.sh
index 7c457be..d8fbeb9 100755 (executable)
@@ -5,11 +5,12 @@ 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/generic/nl80211_listener/nl80211.h"
+EXCEPT="${EXCEPT} -not -wholename ./src-plugins/generic/eth_listener/ethtool-copy.h"
+for file in $(eval find ./src* ./tests ./examples -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