Mercurial > hg > nginx-site
changeset 1295:8743a07a0b39
Makefile: simplified shell code.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 17 Sep 2014 23:43:23 +0400 |
parents | 6f1b9137911e |
children | 7b60ab795af8 |
files | GNUmakefile |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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 \