From 4c4f7b9a2eae1694f1628559cb7baca88a7c29f1 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Fri, 13 Sep 2019 02:03:09 -0400 Subject: Readded todo script from gamedev1 that can be used to find all TODOs placed in our code --- todo.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 todo.sh (limited to 'todo.sh') 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." -- cgit v1.2.3 From b19978a1100bf86086901e1410f2e7ad1358278b Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Sat, 14 Sep 2019 23:46:10 -0400 Subject: Fixed todo script to search all development files including Lua, and GLSL scripts --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todo.sh') diff --git a/todo.sh b/todo.sh index fa43de4..9520eab 100755 --- a/todo.sh +++ b/todo.sh @@ -7,7 +7,7 @@ TODO_COUNT=0 rm -f TODOS touch TODOS -for file in src/*.cpp +for file in $(find {src,Shaders,Scripts} -type f -name '*' -print) do echo "########################################" >> TODOS echo $file >> TODOS -- cgit v1.2.3