Mercurial > hg > nginx
comparison docs/GNUmakefile @ 3995:3ce6b8cedcb9
update documentation build procedure
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 05 Aug 2011 09:00:19 +0000 |
parents | 520cb18b64fb |
children | fc808f006ff4 |
comparison
equal
deleted
inserted
replaced
3994:87628d211f9a | 3995:3ce6b8cedcb9 |
---|---|
4 NGINX= nginx-$(VER) | 4 NGINX= nginx-$(VER) |
5 TEMP= tmp | 5 TEMP= tmp |
6 CP= $(HOME)/java | 6 CP= $(HOME)/java |
7 | 7 |
8 define XSLScript | 8 define XSLScript |
9 javavm -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \ | 9 java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \ |
10 com.pault.StyleSheet \ | 10 com.pault.StyleSheet \ |
11 -x com.pault.XX -y com.pault.XX \ | 11 -x com.pault.XX -y com.pault.XX \ |
12 $(1) docs/xsls/dump.xsls \ | 12 $(1) docs/xsls/dump.xsls \ |
13 | awk 'BEGIN{e=0}/^\n*$$/{e=1;next}{if(e){print"";e=0};print}' > $(2) | 13 | perl -e 'undef $$/; $$_ = <>; s/(\n\n)+/\n/gs; print' > $(2) |
14 | 14 |
15 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) | 15 if [ ! -s $(2) ]; then rm $(2); fi; test -s $(2) |
16 endef | 16 endef |
17 | 17 |
18 define XSLT | 18 define XSLT |
19 xsltproc $(shell echo $4 \ | 19 xmllint --noout --valid $2; \ |
20 xsltproc -o $3 \ | |
21 $(shell echo $4 \\ | |
20 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ | 22 | sed -e "s/\([^= ]*\)=\([^= ]*\)/--param \1 \"'\2'\"/g") \ |
21 $3 $1 \ | 23 $1 $2 |
22 > $(HTML)/$(strip $(2)) | |
23 endef | 24 endef |
24 | 25 |
25 | 26 |
26 changes: $(TEMP)/$(NGINX)/CHANGES.ru \ | 27 changes: $(TEMP)/$(NGINX)/CHANGES.ru \ |
27 $(TEMP)/$(NGINX)/CHANGES | 28 $(TEMP)/$(NGINX)/CHANGES |