diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-27 21:48:57 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-27 21:52:35 +0000 |
commit | d2919806bf3979c72692021a4e491b1e4f174ac7 (patch) | |
tree | 1f41fd79ab414048b76d850739c8c1ba73291b3d | |
parent | 0d4cafa1cfbd379144b4236343a1e6f2c7f85951 (diff) | |
download | dtas-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-- | Rakefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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}.#$$" |