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	Wed Sep 17 07:55:58 2014 +0000
+++ b/GNUmakefile	Wed Sep 17 23:43:23 2014 +0400
@@ -17,8 +17,7 @@
 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				\