Skip to content

Commit 02cd841

Browse files
committed
feat(bin): move scripts to ripgrep for speed
Move the scripts using non-standard arguments to ripgrep for faster parsing and better compatibility. We already have this as a dependency for other scripts and the '-P' argument we need for the advanced Perl matching is only supported on gnu grep anyway. Signed-off-by: Randolph Sapp <[email protected]>
1 parent be5ca4f commit 02cd841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/check-bad-include.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# find files that incorrectly include top level files
44

5-
grep -RiP '.. include:: .*/[^_\/]+[^\/]*\.rst' source/
5+
rg -i '.. include:: .*/[^_\/]+[^\/]*\.rst' source/

bin/check-bad-toc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
find configs/ -name '*_toc.txt' -print0 |
77
while IFS= read -r -d '' file_name; do
8-
grep -Pi '.*/_[^\/]*' "$file_name"
8+
rg -i '.*/_[^\/]*' "$file_name"
99
done

0 commit comments

Comments
 (0)