commit 349fd1a1f1cccd22fc154c7b4ca46365e32803cc parent ea77610582e13cfc663faab184bc40bc12fe4292 Author: Amin Mesbah <mesbahamin@gmail.com> Date: Sat, 29 Jul 2017 16:22:53 -0700 Add todo command to makefile. Diffstat:
M | Makefile | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -18,7 +18,7 @@ RELDIR = release RELEXE = $(RELDIR)/$(EXE) RELCFLAGS = -O2 -Os -.PHONY: all clean debug memcheck prep profile release run +.PHONY: all clean debug memcheck prep profile release run todo all: debug release @@ -42,3 +42,9 @@ release: prep run: debug ./$(DBGEXE) + +todo: + @grep -FIR --colour=never --ignore-case --line-number todo *.c *.h \ + | sed -re 's/^([^:]+):[[:space:]]*(.*)/\1\x01\2/' \ + | sed -re 's/^([^:]+):[[:space:]]*(.*)/\1\x01\2/' \ + | column -s $$'\x01' -t