mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
update documentation build procedure
This commit is contained in:
parent
de236d3a2c
commit
f549c03524
@ -6,20 +6,21 @@ TEMP= tmp
|
|||||||
CP= $(HOME)/java
|
CP= $(HOME)/java
|
||||||
|
|
||||||
define XSLScript
|
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 \
|
com.pault.StyleSheet \
|
||||||
-x com.pault.XX -y com.pault.XX \
|
-x com.pault.XX -y com.pault.XX \
|
||||||
$(1) docs/xsls/dump.xsls \
|
$(1) docs/xsls/dump.xsls \
|
||||||
| awk 'BEGIN{e=0}/^\n*$$/{e=1;next}{if(e){print"";e=0};print}' > $(2)
|
| perl -e 'undef $$/; $$_ = <>; s/(\n\n)+/\n/gs; print' > $(2)
|
||||||
|
|
||||||
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
|
if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define XSLT
|
define XSLT
|
||||||
xsltproc $(shell echo $4 \
|
xmllint --noout --valid $2; \
|
||||||
|
xsltproc -o $3 \
|
||||||
|
$(shell echo $4 \\
|
||||||
| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
|
| sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \
|
||||||
$3 $1 \
|
$1 $2
|
||||||
> $(HTML)/$(strip $(2))
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user