aboutsummaryrefslogtreecommitdiff
path: root/fixmes
blob: dda4f824525ece1ff583e59a6b0443aaa0aa0d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
# FIXME visualizer.
# Run on itself for a nice result: fixmes `which fixmes`
#

# Basic params
NAME="$0"
BASENAME="`basename $NAME`"

# Run
if [ ! -z "$1" ] && [ -e "$1" ]; then
  file="$1"
else
  file='-R *'
fi

grep -i "FIXME" $file | sed -e 's/^  *//'