3 LEN=`cat ./files/default_licence.txt |wc -c`
8 EXCEPT="-not -wholename ./src-plugins/generic/nl80211_listener/nl80211.h"
9 EXCEPT="${EXCEPT} -not -wholename ./src-plugins/generic/eth_listener/ethtool-copy.h"
10 for file in $(eval find ./src* ./tests ./examples -type f -name *[.][ch] ${EXCEPT})
12 cmp --bytes ${LEN} ${file} ./files/default_licence.txt
21 TOTAL=$((${OKAY} + ${BAD}))
25 echo "Found ${OKAY} source/header files with the correct header"
29 echo "Found ${BAD} source/header files with the wrong or an outdated header"
33 echo "No files found, please run script from the main directory of the repository"