From: Sergey Kandaurov Date: Mon, 19 Oct 2026 19:17:59 +0000 (+0000) Subject: Misc: fixed "zip" target with GNU sed X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=58c661b69f3ffbb8fb6d4a2f37087dbf914d0571;p=nginx.git Misc: fixed "zip" target with GNU sed --- diff --git a/misc/GNUmakefile b/misc/GNUmakefile index 74ebfae43..e9d51c3be 100644 --- a/misc/GNUmakefile +++ b/misc/GNUmakefile @@ -90,7 +90,8 @@ zip: export mkdir -p $(TEMP)/$(NGINX)/logs mkdir -p $(TEMP)/$(NGINX)/temp - sed -i '' -e "s/$$/`printf '\r'`/" $(TEMP)/$(NGINX)/conf/* + sed -i.bak -e "s/$$/`printf '\r'`/" $(TEMP)/$(NGINX)/conf/* + rm $(TEMP)/$(NGINX)/conf/*.bak mv $(TEMP)/$(NGINX)/LICENSE $(TEMP)/$(NGINX)/docs.new mv $(TEMP)/$(NGINX)/*.md $(TEMP)/$(NGINX)/docs.new