File: check_todo.sh

package info (click to toggle)
dmtx-utils 0.7.6-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 484 kB
  • sloc: ansic: 2,737; sh: 154; makefile: 124; perl: 28
file content (11 lines) | stat: -rwxr-xr-x 183 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

FILE="$1"

COUNT=$(grep -i -e "XXX" -e "TODO" -e "FIXME" $FILE | wc -l)
if [[ "$COUNT" -gt 0 ]]; then
   printf "%4d TODO(s) remain in $FILE\n" $COUNT
   exit 1
fi

exit 0