about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-03-06 02:30:07 +0000
committerEric Wong <e@80x24.org>2015-03-06 02:30:07 +0000
commit1a7f32d0d8a48b9f26f595d0fa9f5db0c657bc3a (patch)
tree8b2910a761758bf0ebe50083357c206aa1b59d7d
parent03f957c256ca7a686e097779433eca73fcda22a6 (diff)
downloadcmogstored-1a7f32d0d8a48b9f26f595d0fa9f5db0c657bc3a.tar.gz
Oops, we cannot have zero-byte gzipped files :x
-rw-r--r--Makefile.am4
1 files changed, 3 insertions, 1 deletions
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)