From 057225d3235692e7752c784c28bfd6f8484ac57a Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 27 Nov 2019 22:05:58 +0100 Subject: [PATCH] Fixed replacement of placeholders during build process --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e136c1e20..54792a455 100644 --- a/Makefile +++ b/Makefile @@ -184,9 +184,10 @@ material/%.yml: src/%.yml NAME = $(shell jq -r '.name' package.json) VERSION = $(shell jq -r '.version' package.json) material: $$@/assets $$@/__init__.py $$@/mkdocs_theme.yml ${HTML} - @ sed -i"" "s/\$$md-name\$$/${NAME}/" $@/base.html - @ sed -i"" "s/\$$md-version\$$/${VERSION}/" $@/base.html - @ sed -i"" "s/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/" $@/base.html + @ sed -i.tmp 's/\$$md-name\$$/${NAME}/' $@/base.html + @ sed -i.tmp 's/\$$md-version\$$/${VERSION}/' $@/base.html + @ sed -i.tmp 's/\$$md-lunr-languages\$$/${LUNR_LANGUAGES}/' $@/base.html + @ rm -f $@/*.tmp @ echo "\n ${NAME}-${VERSION}\n" # -----------------------------------------------------------------------------