From 1a7f32d0d8a48b9f26f595d0fa9f5db0c657bc3a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 6 Mar 2015 02:30:07 +0000 Subject: Makefile.am: fix publish rule for website Oops, we cannot have zero-byte gzipped files :x --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a18ea15..69b347e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -193,6 +193,7 @@ $(top_srcdir)/NEWS: configure.ac $(top_srcdir)/ChangeLog: configure.ac $(AM_V_GEN)$(RAKE) -sq changelog > $@.$$$$ && mv $@.$$$$ $@ +GZIP = gzip RSYNC = rsync RSYNC_DEST = bogomips.org:/srv/bogomips/cmogstored/ WWW_DOC = README AUTHORS NEWS.atom.xml INSTALL $(extra_doc) @@ -203,8 +204,9 @@ publish: NEWS.atom.xml NEWS ChangeLog # 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 \ + set -e && cd www && for i in $(WWW_DOC); do \ $(GZIP) < $$i > $$i.gz; \ + test -s $$i.gz; \ touch -r $$i $$i.gz; \ done $(RSYNC) -av www/ $(RSYNC_DEST) -- cgit v1.2.3-24-ge0c7