From: Lady Date: Sat, 6 Jan 2024 03:35:43 +0000 (-0500) Subject: Escape / in sed regular expressions X-Git-Tag: 0.2.2~2 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/940adb77ae2147d8c62b6ab7afaf292d13ce64de?ds=inline;hp=d6e717d3dfdfd09bd3e35248b97d0c23c7f6b0bd Escape / in sed regular expressions --- diff --git a/GNUmakefile b/GNUmakefile index ea676dc..9ae7a92 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -193,7 +193,7 @@ override silent := $(if $(VERBOSE),,@) # (callable) Escape special characters for use in sed regular # expressions. -override sedesc = $(subst $$,\$$,$(subst *,\*,$(subst .,\.,$(subst [,\[,$(subst ^,\^,$(subst \,\\,$1)))))) +override sedesc = $(subst /,[/],$(subst $$,\$$,$(subst *,\*,$(subst .,\.,$(subst [,\[,$(subst ^,\^,$(subst \,\\,$1))))))) # Collect all of the applicable includes from the includes directory. sourceincludes := $(shell $(FIND) $(FINDOPTS) $(INCLUDEDIR) -type f '(' $(FINDRULES) ')')