summaryrefslogtreecommitdiff
path: root/cgrep.sh
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-14 16:08:21 -0400
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-14 16:08:21 -0400
commitbc143a695d54f7ac663b2b3f1ea98c53b21842e2 (patch)
tree68540a243b212f5657fc4a9ddbede12e89611a3f /cgrep.sh
parente2eb17dcbd8f9021b7e9fc805c8c03fac6b3b255 (diff)
Initial work on pokemon_summary_screen.c
Diffstat (limited to 'cgrep.sh')
-rw-r--r--cgrep.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgrep.sh b/cgrep.sh
new file mode 100644
index 000000000..f3312ab0b
--- /dev/null
+++ b/cgrep.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+# $1: phrase to find
+
+if [ "$2" == "" ]; then
+ grep_flags="-wr"
+else
+ grep_flags="$2"
+fi
+
+grep "$1" "$grep_flags" --include="*.c" --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"