changeset 1197:4851afb8922f

Fixed dir.map generation.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 17 May 2014 02:15:33 +0400
parents 1c9871bbb3e7
children 59099cb4b16f
files GNUmakefile
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -289,7 +289,7 @@ dir.map:	xslt/dirmap.xslt xml/en/docs/di
 		xml/en/docs/varindex.xml
 	@xsltproc -o - xslt/dirmap.xslt xml/en/docs/dirindex.xml	\
 	xml/en/docs/varindex.xml |					\
-	sed 's/^var_/$$/' |						\
+	sed 's/^ *//;/^$$/d;s/^var_/$$/' |				\
 	sort -u -k1,1 | sed 's/^include /\\&/' > $@
 
 ifeq ($(patsubst %.nginx.org,YES,$(shell hostname)), YES)