# HG changeset patch # User Ruslan Ermilov # Date 1410983003 -14400 # Node ID 8743a07a0b39470ebcb7dce58832901ed16f6a51 # Parent 6f1b9137911e79fe6155751ac27c0b8b5ba0021d Makefile: simplified shell code. diff --git a/GNUmakefile b/GNUmakefile --- 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 \