about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-27 21:48:57 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-27 21:52:35 +0000
commitd2919806bf3979c72692021a4e491b1e4f174ac7 (patch)
tree1f41fd79ab414048b76d850739c8c1ba73291b3d
parent0d4cafa1cfbd379144b4236343a1e6f2c7f85951 (diff)
downloaddtas-d2919806bf3979c72692021a4e491b1e4f174ac7.tar.gz
Preserving mtimes will cut down on unnecessary rsync and HTTP
traffic, saving bandwidth and making the Internet a better place :>
-rw-r--r--Rakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index a73add6..27d7960 100644
--- a/Rakefile
+++ b/Rakefile
@@ -62,6 +62,11 @@ task :rsync_docs do
   dest = ENV["RSYNC_DEST"] || "80x24.org:/srv/dtas/"
   top = %w(INSTALL NEWS README COPYING)
   files = []
+
+  # git-set-file-times is distributed with rsync,
+  # on Debian systems: /usr/share/doc/rsync/scripts/git-set-file-times.gz
+  sh("git", "set-file-times", "Documentation")
+
   Dir['Documentation/*.txt'].to_a.concat(top).each do |txt|
     gz = "#{txt}.gz"
     tmp = "#{gz}.#$$"