]> Lady’s Gitweb - Shushe/commitdiff
Escape / in sed regular expressions
authorLady <redacted>
Sat, 6 Jan 2024 03:35:43 +0000 (22:35 -0500)
committerLady <redacted>
Sat, 6 Jan 2024 03:35:43 +0000 (22:35 -0500)
GNUmakefile

index ea676dc3c4bfbd76257c069f824a2ffbcddf1324..9ae7a921aa2c3522cbe2ecce93b1ea4881d4fa49 100644 (file)
@@ -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) ')')
This page took 0.034716 seconds and 4 git commands to generate.