diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-13 02:03:09 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-13 02:03:09 -0400 |
commit | 4c4f7b9a2eae1694f1628559cb7baca88a7c29f1 (patch) | |
tree | 6c6a810e58d58165d424d32e12d7f90a4b546704 | |
parent | 54cf2f1f9a044a0d0def92c1904b24d3c3647d36 (diff) |
Readded todo script from gamedev1 that can be used to find all TODOs placed in our code
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | todo.sh | 19 |
2 files changed, 20 insertions, 1 deletions
@@ -4,4 +4,4 @@ out .*.swo *.o *.json - +TODOS @@ -0,0 +1,19 @@ +#!/bin/bash + +# +# Searches for all TODOs and tosses them in a file. +# +TODO_COUNT=0 +rm -f TODOS +touch TODOS + +for file in src/*.cpp +do + echo "########################################" >> TODOS + echo $file >> TODOS + echo "========================================" >> TODOS + grep -n -B 5 -A 5 "TODO" $file | sed s/--/========================================/g >> TODOS + TODO_COUNT=$((TODO_COUNT+$(grep -c "TODO" $file))) +done + +echo "Found" $TODO_COUNT "TODOs." |