d096f37d75
Also commit hgrep.sh for searching in non-c files.
11 lines
379 B
Bash
11 lines
379 B
Bash
#!/bin/bash
|
|
# $1: phrase to find
|
|
|
|
if [ "$2" == "" ]; then
|
|
grep_flags="-wr"
|
|
else
|
|
grep_flags="$2"
|
|
fi
|
|
|
|
grep "$1" "$grep_flags" --include="*.h" --include="*.s" --include="*.inc" --include="*.txt" --exclude-dir=".git" --exclude-dir=".travis" --exclude-dir="build" --exclude-dir="common_syms" --exclude-dir="data" --exclude-dir="graphics" --exclude-dir="sound" --exclude-dir="tools"
|