From fc37c5db3ce6ba4e81eeca56ba6f8fed2a7500c0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Dec 2023 21:45:00 +0100 Subject: Remove used of unportable \+ in sed script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 93c0b1d..a4fdd34 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,7 @@ $(BIN_SPECIFIC:=.c): +@set -e; \ f="$$(\ set -e; \ - sed -n 's/^\([a-z0-9-]\+\)%\([^:]*\):.*$$/\1 \2/p' < unportable.mk | while read start end; do \ + sed -n 's/^\([a-z][a-z0-9-]\+\)%\([^:]*\):.*$$/\1 \2/p' < unportable.mk | while read start end; do \ end="$$(printf '%s\n' "$$end" | sed 's/\./\\\./g')"; \ x="$$(printf '%s\n' '$@' | sed -n 's/^'"$$start"'\(.*\)'"$$end"'$$/\1/p')"; \ if test -n "$$x"; then \ -- cgit v1.2.3-70-g09d2