3
0
mirror of https://github.com/nginx/nginx.git synced 2024-12-23 23:50:09 -06:00

update documentation build procedure

This commit is contained in:
Igor Sysoev 2011-08-05 09:00:19 +00:00
parent de236d3a2c
commit f549c03524

View File

@ -6,20 +6,21 @@ TEMP= tmp
CP= $(HOME)/java
define XSLScript
javavm -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \
java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \
com.pault.StyleSheet \
-x com.pault.XX -y com.pault.XX \
$(1) docs/xsls/dump.xsls \
| awk 'BEGIN{e=0}/^\n*$$/{e=1;next}{if(e){print"";e=0};print}' > $(2)
$(1) docs/xsls/dump.xsls \
| perl -e 'undef $$/; $$_ = <>; s/(\n\n)+/\n/gs; print' > $(2)
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
endef
define XSLT
xsltproc $(shell echo $4 \
xmllint --noout --valid $2; \
xsltproc -o $3 \
$(shell echo $4 \\
| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
$3 $1 \
> $(HTML)/$(strip $(2))
$1 $2
endef