summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-17 07:41:53 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-17 07:42:54 +0000
commit333f22b27fdfb89b5f579ab541d1daa3167fdc73 (patch)
treea305d160ebe0e0a402f09bbae3efd8733780065d
parentbb6b693ae1eb0a32f374ab5d6ebf8f595be2812d (diff)
This lets me use RSYNC=echo when testing/editing documentation
without actually publishing it.
-rw-r--r--GNUmakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 854fb54..ee493d7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -8,6 +8,7 @@ MRI = ruby
 RUBY = ruby
 RAKE = rake
 RAGEL = ragel
+RSYNC = rsync
 
 GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
         @./GIT-VERSION-GEN
@@ -221,7 +222,7 @@ publish_doc:
         $(MAKE) doc_gz
         tar cf - $$(git ls-files examples/) | (cd doc && tar xf -)
         chmod 644 $$(find doc -type f)
-        rsync -av doc/ unicorn.bogomips.org:/srv/unicorn/
+        $(RSYNC) -av doc/ unicorn.bogomips.org:/srv/unicorn/
         git ls-files | xargs touch
 
 # Create gzip variants of the same timestamp as the original so nginx