]> git.ipfire.org Git - thirdparty/man-pages.git/commit
share/mk/: Escape '#' in regexes
authorAlejandro Colomar <alx@kernel.org>
Mon, 10 Feb 2025 10:56:01 +0000 (11:56 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 10 Feb 2025 11:51:03 +0000 (12:51 +0100)
commit76f12e3fd3eab022f4f4d608c9a8e4d80cb81fd2
tree4c55c08e9c59a820189b5895779a53c564ebfbb7
parent185d0530f8450fb4c9588b451b3674c2dae9862c
share/mk/: Escape '#' in regexes

GNU make(1) 4.2 seems to be interpreting those characters as the start
of a comment, so we need to escape them.  That seems to calm those old
versions of make(1), and doesn't affect negatively the newer ones, and
doesn't affect negatively grep(1) either.

Fixes: 35a780a99bd8 (2024-07-20; "share/mk/: CPPFLAGS: Only define _FORTIFY_SOURCE if it's not already defined")
Fixes: 2130162900ab (2024-11-03; "share/mk/, etc/shellcheck/: lint-sh: Add target to lint shell scripts")
Reported-by: Boris Pigin <boris.pigin@gmail.com>
Cc: Sam James <sam@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/configure/build-depends/cpp/cpp.mk
share/mk/src/sh.mk