aboutsummaryrefslogtreecommitdiff
path: root/fixmes
diff options
context:
space:
mode:
Diffstat (limited to 'fixmes')
-rwxr-xr-xfixmes18
1 files changed, 18 insertions, 0 deletions
diff --git a/fixmes b/fixmes
new file mode 100755
index 0000000..dda4f82
--- /dev/null
+++ b/fixmes
@@ -0,0 +1,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/^ *//'