Mercurial > hg > nginx-site
diff GNUmakefile @ 1295:8743a07a0b39
Makefile: simplified shell code.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 17 Sep 2014 23:43:23 +0400 |
parents | c102344a0fa0 |
children | 7b60ab795af8 |
line wrap: on
line diff
--- a/GNUmakefile +++ b/GNUmakefile @@ -17,8 +17,7 @@ endef define XSLT xmllint --noout --valid $2 xsltproc -o $3 \ - $(shell ff=`echo $2`; ff=$${ff#xml/}; \ - f=$${ff#*/}; \ + $(shell ff="$(strip $2)"; f=$${ff#xml/*/}; \ if [ "$$f" != "$$ff" ]; then \ [ -f xml/en/$$f ] && echo --stringparam ORIGIN "en/$$f";\ t=; for l in $(LANGS); do \