diff GNUmakefile @ 600:89a4e934d207

Emit a warning with a link to English original if translation is outdated.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Jul 2012 09:27:55 +0000
parents 19c9bd574db0
children e0544f2c4a70
line wrap: on
line diff
--- a/GNUmakefile	Fri Jul 20 09:07:28 2012 +0000
+++ b/GNUmakefile	Fri Jul 20 09:27:55 2012 +0000
@@ -23,6 +23,8 @@
 define	XSLT
 	xmllint --noout --valid $2
 	xsltproc -o $3							\
+		$(shell f=`echo $2 | sed 's;^xml/[^/]*/;xml/en/;'`;	\
+		[ -f $$f ] && echo --stringparam ORIGIN "../$$f")	\
 		$(shell echo $4						\
 		| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
 		$1 $2