about summary refs log tree commit homepage
path: root/local.mk.sample
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-06 13:41:19 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-06 13:43:05 -0700
commit7fdf4388a637b687c3996a4e5943db4610ba6f6e (patch)
tree3b27e2dd35abfdfe613e0719c07ec3030dbfef14 /local.mk.sample
parentc302b3281b71897f6e2854562e6f77447831e61e (diff)
downloadunicorn-7fdf4388a637b687c3996a4e5943db4610ba6f6e.tar.gz
While we're at it, use the rsyncable flag with gzip here
to reduce bandwidth usage on my end.
Diffstat (limited to 'local.mk.sample')
-rw-r--r--local.mk.sample6
1 files changed, 3 insertions, 3 deletions
diff --git a/local.mk.sample b/local.mk.sample
index 84bcf44..d218474 100644
--- a/local.mk.sample
+++ b/local.mk.sample
@@ -38,7 +38,7 @@ publish_doc:
 # Create gzip variants of the same timestamp as the original so nginx
 # "gzip_static on" can serve the gzipped versions directly.
 doc_gz: suf := html js css
-doc_gz: globs := $(addprefix doc/*.,$(suf)) $(addprefix doc/*/*.,$(suf))
-doc_gz: docs := $(wildcard $(globs))
+doc_gz: docs = $(shell find doc/ -regex '^.*\.\(html\|js\|css\)$$')
 doc_gz:
-        for i in $(docs); do gzip < $$i > $$i.gz; touch -r $$i $$i.gz; done
+        for i in $(docs); do \
+          gzip --rsyncable < $$i > $$i.gz; touch -r $$i $$i.gz; done