assimp/scripts/scan_printf.sh

15 lines
289 B
Bash
Raw Normal View History

2023-03-04 13:41:10 +00:00
#!/bin/bash
grep \
--include=\*.{c,cpp,h} \
2023-03-04 13:41:10 +00:00
--exclude={pstdint,m3d}.h \
-rnw include code \
-e '^\s*printf'
if [ $? ]
then
echo "Debug statement(s) detected. Please uncomment (using single-line comment), remove, or manually add to exclude filter, if appropriate"
exit 1
fi