From: Andy Belle-Isle Date: Fri, 13 Sep 2019 06:03:09 +0000 (-0400) Subject: Readded todo script from gamedev1 that can be used to find all TODOs placed in our... X-Git-Tag: v0.2-alpha~19 X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=4c4f7b9a2eae1694f1628559cb7baca88a7c29f1;p=clyne%2Fgamedev2.git Readded todo script from gamedev1 that can be used to find all TODOs placed in our code --- diff --git a/.gitignore b/.gitignore index 65892b3..3435d00 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ out .*.swo *.o *.json - +TODOS diff --git a/todo.sh b/todo.sh new file mode 100755 index 0000000..fa43de4 --- /dev/null +++ b/todo.sh @@ -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."