diff options
author | Eric Wong <e@80x24.org> | 2014-09-20 10:18:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-20 10:18:33 +0000 |
commit | d5be3d489822cf72fcc491a25b8f1af313435ffc (patch) | |
tree | cecaf6d9e317712399fc7d0e094bc4d67b8b5c75 | |
parent | 3a39cbd6632a8f80af3d0ef082d5007e28826384 (diff) | |
download | cmogstored-d5be3d489822cf72fcc491a25b8f1af313435ffc.tar.gz |
Speeds up site loading when combined with things like try_gzip_static in nginx.
-rw-r--r-- | Makefile.am | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 9fb61cd..a18ea15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -200,9 +200,13 @@ NEWS.atom.xml: configure.ac $(AM_V_GEN)$(RAKE) -sq news_atom > $@.$$$$ && mv $@.$$$$ $@ publish: NEWS.atom.xml NEWS ChangeLog mkdir -p www/ - -git set-file-times - $(INSTALL_DATA) -p $(WWW_DOC) www/ - for i in $$(git ls-files doc/); do $(INSTALL_DATA) -p $$i www/; done +# n.b. git set-file-times is non-standard, but distributed with rsync + -cd $(top_srcdir) && git set-file-times $(WWW_DOC) + $(INSTALL_DATA) -p $(addprefix $(top_srcdir)/,$(WWW_DOC)) www/ + cd www && for i in $(WWW_DOC); do \ + $(GZIP) < $$i > $$i.gz; \ + touch -r $$i $$i.gz; \ + done $(RSYNC) -av www/ $(RSYNC_DEST) .PHONY: publish |