]> git.kaiwu.me - nginx.git/commitdiff
Misc: fixed "zip" target with GNU sed stable-1.30
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 19 Oct 2026 19:17:59 +0000 (19:17 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 20 Oct 2026 17:42:11 +0000 (21:42 +0400)
misc/GNUmakefile

index 74ebfae4395fe1b5439a3767158622cfab1a738c..e9d51c3be1fc25dbefcc03d487784608ee992f3f 100644 (file)
@@ -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