# HG changeset patch # User Ruslan Ermilov # Date 1410983030 -14400 # Node ID 7b60ab795af880a34fc7f52a7ff5587cc65d58b2 # Parent 8743a07a0b39470ebcb7dce58832901ed16f6a51 Makefile: avoided the use of shell code. diff --git a/GNUmakefile b/GNUmakefile --- a/GNUmakefile +++ b/GNUmakefile @@ -24,8 +24,7 @@ define XSLT [ -f "xml/$$l/$$f" ] && t="$$t$$l "; done; \ echo --stringparam TRANS "\"$$t\""; \ fi) \ - $(shell p="$4"; [ -n "$$p" ] && \ - echo --stringparam $${p%%=*} $${p#*=}) \ + $(if $4,--stringparam $4 $5) \ $1 $2 endef @@ -148,7 +147,7 @@ endef $(foreach year,$(YEARS),$(OUT)/$(year).html): \ xml/index.xml \ $(NEWS_DEPS) - $(call XSLT, xslt/news.xslt, $<, $@, YEAR=$(basename $(notdir $@))) + $(call XSLT, xslt/news.xslt, $<, $@, YEAR, $(basename $(notdir $@))) $(OUT)/404.html: \ xml/404.xml \