mirror of
https://github.com/nginx/nginx.git
synced 2024-12-24 16:10:38 -06:00
update documentation build procedure
This commit is contained in:
parent
de236d3a2c
commit
f549c03524
@ -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)
|
||||
| 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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user