comparison dropbear_lint.sh @ 1679:90fffce0ee99

Add linter for #ifdef
author Matt Johnston <matt@ucc.asn.au>
date Sun, 24 May 2020 13:15:24 +0800
parents
children
comparison
equal deleted inserted replaced
1678:4b4cfc92c5b7 1679:90fffce0ee99
1 #!/bin/sh
2
3 EXITCODE=0
4
5 # #ifdef instead of #if
6 grep '#ifdef DROPBEAR' -I *.c *.h && EXITCODE=1
7
8 exit $EXITCODE