]> git.ipfire.org Git - thirdparty/man-pages.git/commit
src/bin/grepc{,_c,_mk}: Split grepc(1) into helper programs
authorAlejandro Colomar <alx@kernel.org>
Sun, 2 Nov 2025 15:50:50 +0000 (16:50 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 3 Nov 2025 10:41:44 +0000 (11:41 +0100)
commit6a7462381754e1894265d7c7d9c70b9f52475faf
tree3b62900fb43d9d8d4bd2fc163f976f4292c8cd41
parent6882b3584a1e6d7d5ee0a2457c0ea163d526ab89
src/bin/grepc{,_c,_mk}: Split grepc(1) into helper programs

These programs print the PCRE2 patterns used by grepc(1).  This allows
easily implementing different drivers for parsing different languages.

It also allows easily using pcre2grep(1) in cases where grepc(1) might
be limited; for example, searching in non-regular files, or passing
other flags that grepc(1) doesn't pass to pcre2grep(1).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/bin/grepc
src/bin/grepc_c [new file with mode: 0755]
src/bin/grepc_mk [new file with mode: 0755]