2006-08-30 05:39:17 -05:00
|
|
|
|
2006-10-12 14:55:15 -05:00
|
|
|
VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
|
|
|
|
| sed -e 's/^.*\"\(.*\)\"/\1/')
|
2006-08-30 05:39:17 -05:00
|
|
|
NGINX= nginx-$(VER)
|
|
|
|
TEMP= tmp
|
|
|
|
CP= $(HOME)/java
|
|
|
|
|
|
|
|
|
2011-10-09 01:49:54 -05:00
|
|
|
all: changes
|
2011-09-05 04:39:24 -05:00
|
|
|
|
2006-08-30 05:39:17 -05:00
|
|
|
changes: $(TEMP)/$(NGINX)/CHANGES.ru \
|
|
|
|
$(TEMP)/$(NGINX)/CHANGES
|
|
|
|
|
|
|
|
|
2012-08-30 11:08:13 -05:00
|
|
|
$(TEMP)/$(NGINX)/CHANGES.ru: docs/dtd/changes.dtd \
|
|
|
|
docs/xml/nginx/changes.xml \
|
2011-08-19 03:33:47 -05:00
|
|
|
docs/xml/change_log_conf.xml \
|
2006-08-30 05:39:17 -05:00
|
|
|
docs/xslt/changes.xslt
|
|
|
|
|
2012-07-31 16:49:23 -05:00
|
|
|
mkdir -p $(TEMP)/$(NGINX)
|
2006-08-30 05:39:17 -05:00
|
|
|
|
2012-08-30 11:08:13 -05:00
|
|
|
xmllint --noout --valid docs/xml/nginx/changes.xml
|
2011-08-19 03:33:47 -05:00
|
|
|
xsltproc --stringparam lang ru \
|
2012-07-31 16:49:23 -05:00
|
|
|
-o $@ docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
2006-08-30 05:39:17 -05:00
|
|
|
|
|
|
|
|
2012-08-30 11:08:13 -05:00
|
|
|
$(TEMP)/$(NGINX)/CHANGES: docs/dtd/changes.dtd \
|
|
|
|
docs/xml/nginx/changes.xml \
|
2011-08-19 03:33:47 -05:00
|
|
|
docs/xml/change_log_conf.xml \
|
2006-08-30 05:39:17 -05:00
|
|
|
docs/xslt/changes.xslt
|
|
|
|
|
2012-07-31 16:49:23 -05:00
|
|
|
mkdir -p $(TEMP)/$(NGINX)
|
2006-08-30 05:39:17 -05:00
|
|
|
|
2012-08-30 11:08:13 -05:00
|
|
|
xmllint --noout --valid docs/xml/nginx/changes.xml
|
2011-08-19 03:33:47 -05:00
|
|
|
xsltproc --stringparam lang en \
|
2012-07-31 16:49:23 -05:00
|
|
|
-o $@ docs/xslt/changes.xslt docs/xml/nginx/changes.xml
|
|
|
|
|
2006-08-30 05:39:17 -05:00
|
|
|
|
2012-07-31 16:49:23 -05:00
|
|
|
docs/xslt/changes.xslt: docs/xsls/changes.xsls docs/xsls/dump.xsls
|
2006-08-30 05:39:17 -05:00
|
|
|
|
2012-07-31 16:49:23 -05:00
|
|
|
java -cp $(CP)/xsls/saxon.jar:$(CP)/xsls/xsls.jar \
|
|
|
|
com.pault.StyleSheet \
|
|
|
|
-x com.pault.XX -y com.pault.XX \
|
|
|
|
$< docs/xsls/dump.xsls \
|
|
|
|
| sed 's/ *$$//;/^ *$$/N;/\n *$$/D' > $@
|
2006-08-30 05:39:17 -05:00
|
|
|
|
2012-07-31 16:49:23 -05:00
|
|
|
if [ ! -s $@ ]; then rm $@; fi; test -s $@
|